mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 22:08:04 -05:00
Fixes #659
This commit is contained in:
@@ -694,9 +694,7 @@
|
||||
if (!_.isRegExp(route)) route = this._routeToRegExp(route);
|
||||
Backbone.history.route(route, _.bind(function(fragment) {
|
||||
var args = this._extractParameters(route, fragment);
|
||||
if (callback){
|
||||
callback.apply(this, args);
|
||||
}
|
||||
callback && callback.apply(this, args);
|
||||
this.trigger.apply(this, ['route:' + name].concat(args));
|
||||
}, this));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user