added trigger applyment

This commit is contained in:
bodokaiser
2013-01-02 16:03:35 +01:00
committed by Brad Dunbar
parent 6e3e137019
commit 52dc7de74f

View File

@@ -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));