]> git.openstreetmap.org Git - rails.git/commit
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)
commitaafb1db2be953bd854d2a4e9fdab644db00f8958
tree46b43af4bdb2c9cd3f90926cf8cf6c937f7b0caa
parent20e4909230ab79223e565c06bc1f16dc5175d60c
Avoid relying on global state to detect when we are dragging

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.
app/assets/javascripts/index/directions.js