[openstreetmap-website] Unconditionally unbind moveend event (#614)

John Firebaugh notifications at github.com
Tue Dec 3 23:05:16 UTC 2013

Can't rely on checking location.pathname -- inside unload, it already contains
the new path. Fortunately, checking is unnecessary.

Fixes TypeError: Cannot call method 'split' of undefined.
You can merge this Pull Request by running:

  git pull https://github.com/jfirebaugh/openstreetmap-website history-fix

Or you can view, comment on it, or merge it online at:


-- Commit Summary --

  * Unconditionally unbind moveend event

-- File Changes --

    M app/assets/javascripts/index/history.js (5)

-- Patch Links --

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20131203/db0bc4b0/attachment.html>

More information about the rails-dev mailing list