From ef8e10fafb8d1943b60a7f0a1086e37952d97840 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Wed, 24 Oct 2012 17:59:40 -0400 Subject: [PATCH] Further simplify Router#_bindRoutes. --- backbone.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index 6918ca163..8953d47c7 100644 --- a/backbone.js +++ b/backbone.js @@ -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]); } },