[Pkg-javascript-commits] [backbone] 157/281: no need to _.bindAll _onModelEvent

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.0
in repository backbone.

commit 61b277937eeb64edf46f96c1d8d39cd0bb037721
Author: Brad Dunbar <dunbarb2 at gmail.com>
Date:   Tue Jan 10 07:16:53 2012 -0500

    no need to _.bindAll _onModelEvent
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index 1234c06..00323e3 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;
     },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list