Remove debugging code
This commit is contained in:
parent
5642cf696e
commit
ba4a3e3ce9
1 changed files with 2 additions and 6 deletions
|
@ -169,12 +169,8 @@ OSM.Router = function(map, rts) {
|
||||||
};
|
};
|
||||||
|
|
||||||
router.load = function() {
|
router.load = function() {
|
||||||
if (currentRoute) {
|
var loadState = currentRoute.run('load', currentPath);
|
||||||
var loadState = currentRoute.run('load', currentPath);
|
router.stateChange(loadState || {});
|
||||||
router.stateChange(loadState || {});
|
|
||||||
} else {
|
|
||||||
throw "Unable to match route for: " + currentPath;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
map.on('moveend baselayerchange overlaylayerchange', router.updateHash);
|
map.on('moveend baselayerchange overlaylayerchange', router.updateHash);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue