]> git.openstreetmap.org Git - rails.git/commitdiff
Remove debugging code
authorTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 19:04:15 +0000 (19:04 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 19:04:15 +0000 (19:04 +0000)
app/assets/javascripts/router.js

index 56616c2694d4cbe94ecd6dc2bb2dc8e590e73af5..cadb6b628f1b672fa9dd46aaa6a2adf5279ddca1 100644 (file)
@@ -169,12 +169,8 @@ OSM.Router = function(map, rts) {
   };
 
   router.load = function() {
-    if (currentRoute) {
-      var loadState = currentRoute.run('load', currentPath);
-      router.stateChange(loadState || {});
-    } else {
-      throw "Unable to match route for: " + currentPath;
-    }
+    var loadState = currentRoute.run('load', currentPath);
+    router.stateChange(loadState || {});
   };
 
   map.on('moveend baselayerchange overlaylayerchange', router.updateHash);