Merge pull request #3675 from jdalton/no-bind-all

Remove the only `_.bindAll` use.
This commit is contained in:
Justin Ridgewell
2015-06-09 15:49:54 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1518,7 +1518,7 @@
// falls back to polling.
var History = Backbone.History = function() {
this.handlers = [];
_.bindAll(this, 'checkUrl');
this.checkUrl = _.bind(this.checkUrl, this);
// Ensure that `History` can be used outside of the browser.
if (typeof window !== 'undefined') {

View File

@@ -67,7 +67,7 @@
this.value = value;
}
};
_.bindAll(ExternalObject, 'routingFunction');
ExternalObject.routingFunction = _.bind(ExternalObject.routingFunction, ExternalObject);
var Router = Backbone.Router.extend({