]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid relying on global state to detect when we are dragging
authorTom Hughes <tom@compton.nu>
Wed, 14 Feb 2018 17:58:01 +0000 (17:58 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 14 Feb 2018 17:58:01 +0000 (17:58 +0000)
We can't guarantee what order getRoute calls will finish in so
relying on global state is dangerous - capture it in the closure
instead so that each route knows what it is doing.


No differences found