From f17747e04161477d30b4df0e11459eee237815c8 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 3 Nov 2011 22:30:36 +0000 Subject: [PATCH] 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 c5473ba5..2b915179 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] = {};