[Pkg-javascript-commits] [backbone] 21/28: Fixes #531, reverts 39b36af
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:01:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.3
in repository backbone.
commit 10e71e31198fa05af4a530838c89768f04d19564
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Wed Aug 3 16:11:41 2011 -0400
Fixes #531, reverts 39b36af
---
backbone.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backbone.js b/backbone.js
index 9e57e75..92f74b8 100644
--- a/backbone.js
+++ b/backbone.js
@@ -71,7 +71,7 @@
bind : function(ev, callback, context) {
var calls = this._callbacks || (this._callbacks = {});
var list = calls[ev] || (calls[ev] = []);
- list.push([callback, context || this]);
+ list.push([callback, context]);
return this;
},
@@ -114,7 +114,7 @@
list.splice(i, 1); i--; l--;
} else {
args = both ? Array.prototype.slice.call(arguments, 1) : arguments;
- callback[0].apply(callback[1], args);
+ callback[0].apply(callback[1] || this, args);
}
}
}
--
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