mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-14 17:37:54 -05:00
added trigger applyment
This commit is contained in:
@@ -956,6 +956,7 @@
|
||||
Backbone.history.route(route, _.bind(function(fragment) {
|
||||
var args = this._extractParameters(route, fragment);
|
||||
callback && callback.apply(this, args);
|
||||
this.trigger.apply(this, ['route', name].concat(args));
|
||||
this.trigger.apply(this, ['route:' + name].concat(args));
|
||||
Backbone.history.trigger('route', this, name, args);
|
||||
}, this));
|
||||
|
||||
Reference in New Issue
Block a user