- 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 || {});