From ba4a3e3ce96eddc9bbbcde1f255a80f65f49dc8f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Dec 2013 19:04:15 +0000 Subject: [PATCH 1/1] Remove debugging code --- app/assets/javascripts/router.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 56616c269..cadb6b628 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -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); -- 2.43.2