Fixes #892 ... make .route() chainable.

This commit is contained in:
Jeremy Ashkenas
2012-01-30 11:03:16 -05:00
parent 00b2551e66
commit ac580caffa

View File

@@ -731,6 +731,7 @@
this.trigger.apply(this, ['route:' + name].concat(args));
Backbone.history.trigger('route', this, name, args);
}, this));
return this;
},
// Simple proxy to `Backbone.history` to save a fragment into the history.