]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Require i18n-js 3.0.0.rc5.3 for proper dependency on configuration
[rails.git] / app / assets / javascripts / index / history.js
index dfec793f6494c6cf219f1b0c2bd8bf1526134913..d98179d8ad03bdd0e14509688a8d38d6a75d19f2 100644 (file)
@@ -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");
   };