From 8e814e22e88426e5a421bf3ff9ee32390944afd7 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 3 Nov 2013 17:11:48 +0200 Subject: [PATCH] Optimise events more. --- lib/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/events.js b/lib/events.js index 673594c..821615d 100644 --- a/lib/events.js +++ b/lib/events.js @@ -51,7 +51,7 @@ var Events = Backbone.Events = { if (!this._events || !eventsApi(this, 'off', name, [callback, context])) return this; if (!name && !callback && !context) { - delete this._events; + this._events = undefined; return this; }