From 61b277937eeb64edf46f96c1d8d39cd0bb037721 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Tue, 10 Jan 2012 07:16:53 -0500 Subject: [PATCH] no need to _.bindAll _onModelEvent --- backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index 1234c060..00323e34 100644 --- a/backbone.js +++ b/backbone.js @@ -390,7 +390,7 @@ Backbone.Collection = function(models, options) { options || (options = {}); if (options.comparator) this.comparator = options.comparator; - _.bindAll(this, '_onModelEvent', '_removeReference'); + _.bindAll(this, '_removeReference'); this._reset(); if (models) this.reset(models, {silent: true}); this.initialize.apply(this, arguments); @@ -573,7 +573,7 @@ } else { this.models.push(model); } - model.bind('all', this._onModelEvent); + model.bind('all', this._onModelEvent, this); this.length++; return model; },