From 52dc7de74fb91114224a292ae852df6aec58d2ee Mon Sep 17 00:00:00 2001 From: bodokaiser Date: Wed, 2 Jan 2013 16:03:35 +0100 Subject: [PATCH] added trigger applyment --- backbone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backbone.js b/backbone.js index 4e116dec..73c82d0f 100644 --- a/backbone.js +++ b/backbone.js @@ -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));