[Pkg-javascript-commits] [backbone] 134/211: Reference calls variable in list variable definition in Backbone.Events.bind

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:14 UTC 2014


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

js pushed a commit to tag 0.5.0
in repository backbone.

commit 7afd43c0ef110a9aafdcefb12453daf8f7dfde77
Author: Damien Holzapfel <an0nymity at gmail.com>
Date:   Wed Apr 27 10:38:13 2011 -0700

    Reference calls variable in list variable definition in Backbone.Events.bind
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index bec4de0..3045a8c 100644
--- a/backbone.js
+++ b/backbone.js
@@ -70,7 +70,7 @@
     // Passing `"all"` will bind the callback to all events fired.
     bind : function(ev, callback) {
       var calls = this._callbacks || (this._callbacks = {});
-      var list  = this._callbacks[ev] || (this._callbacks[ev] = []);
+      var list  = calls[ev] || (calls[ev] = []);
       list.push(callback);
       return this;
     },

-- 
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