mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #1773 from braddunbar/bind-routes
Further simplify Router#_bindRoutes.
This commit is contained in:
@@ -950,8 +950,7 @@
|
||||
if (!this.routes) return;
|
||||
var route, routes = _.keys(this.routes);
|
||||
while ((route = routes.pop()) != null) {
|
||||
var name = this.routes[route];
|
||||
this.route(route, name, this[name]);
|
||||
this.route(route, this.routes[route]);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user