The listener is not going to be run once if it's constructed inside the 
`locateactivate` listener. It's going to be run however many times 
`locateactivate` happens.

Actually neither this custom event nor `locateactivate` is required, but 
that's for the next pull request.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5737

-- Commit Summary --

  * Register startinglocation listener as a named function

-- File Changes --

    M app/assets/javascripts/index/directions.js (10)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5737.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5737.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5737
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to