From: Tom Hughes Date: Tue, 3 Dec 2013 19:04:15 +0000 (+0000) Subject: Remove debugging code X-Git-Tag: live~4599 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ba4a3e3ce96eddc9bbbcde1f255a80f65f49dc8f Remove debugging code --- 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);