Merge pull request #1773 from braddunbar/bind-routes

Further simplify Router#_bindRoutes.
This commit is contained in:
Jeremy Ashkenas
2012-10-24 15:10:01 -07:00

View File

@@ -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]);
}
},