Remove debugging code

This commit is contained in:
Tom Hughes 2013-12-03 19:04:15 +00:00
parent 5642cf696e
commit ba4a3e3ce9

View 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);