[Pkg-javascript-commits] [backbone] 65/281: This means that after unbinding every event, a trigger call will return faster, because !(calls = this._callbacks) will evaluate to true.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:01:57 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 f17747e04161477d30b4df0e11459eee237815c8
Author: Justin <drakefjustin at gmail.com>
Date: Thu Nov 3 22:30:36 2011 +0000
This means that after unbinding every event, a trigger call will return faster, because !(calls = this._callbacks) will evaluate to true.
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index c5473ba..2b91517 100644
--- a/backbone.js
+++ b/backbone.js
@@ -87,7 +87,7 @@
unbind : function(ev, callback) {
var calls, node, prev;
if (!ev) {
- this._callbacks = {};
+ this._callbacks = null;
} else if (calls = this._callbacks) {
if (!callback) {
calls[ev] = {};
--
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