Skip to content

Commit

Permalink
Further simplify Router#_bindRoutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Oct 24, 2012
1 parent eebbca8 commit ef8e10f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
},

Expand Down

0 comments on commit ef8e10f

Please sign in to comment.