X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6053ed41242448b286cae2b14126add52ea07fb5..ef448ea4946091c1bd671b2169f31f9b22e6f7cb:/app/assets/javascripts/index/history.js?ds=inline diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index dfec793f6..8103f047e 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -126,7 +126,7 @@ OSM.History = function(map) { map.addLayer(group); if (window.location.pathname === '/history') { - map.on("moveend", update) + map.on("moveend", update); } update(); @@ -134,10 +134,7 @@ OSM.History = function(map) { page.unload = function() { map.removeLayer(group); - - if (window.location.pathname === '/history') { - map.off("moveend", update) - } + map.off("moveend", update); $("#history_tab").removeClass("current"); };