mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #3675 from jdalton/no-bind-all
Remove the only `_.bindAll` use.
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
this.value = value;
|
||||
}
|
||||
};
|
||||
_.bindAll(ExternalObject, 'routingFunction');
|
||||
ExternalObject.routingFunction = _.bind(ExternalObject.routingFunction, ExternalObject);
|
||||
|
||||
var Router = Backbone.Router.extend({
|
||||
|
||||
|
||||
Reference in New Issue
Block a user