Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make Router.routes accept a function

  • Loading branch information...
commit 5a281c511d9c232ac2e4508278c1a8d63c41b386 1 parent 29ad43e
@brysgo brysgo authored = committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  backbone.js
View
1  backbone.js
@@ -990,6 +990,7 @@
// routes can be defined at the bottom of the route map.
_bindRoutes: function() {
if (!this.routes) return;
+ this.routes = _.result(this, 'routes');
var route, routes = _.keys(this.routes);
while ((route = routes.pop()) != null) {
this.route(route, this.routes[route]);
Please sign in to comment.
Something went wrong with that request. Please try again.