]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Remove unused (and bogus) code
[rails.git] / app / assets / javascripts / index / history.js
index dfec793f6494c6cf219f1b0c2bd8bf1526134913..8103f047ed5d054e29c0a65fb27c2654150a965b 100644 (file)
@@ -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");
   };