Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Oct 31, 2011
1 parent b2407ef commit 5ebbeb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
Expand Down

0 comments on commit 5ebbeb0

Please sign in to comment.