From 7ce750a3b7b26929ad8bedccfd103367a7dadcd2 Mon Sep 17 00:00:00 2001 From: Mourner Date: Thu, 8 Sep 2011 12:11:14 +0300 Subject: [PATCH] more on #281 --- src/dom/DomEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/DomEvent.js b/src/dom/DomEvent.js index f0bd1441..1c500aa8 100644 --- a/src/dom/DomEvent.js +++ b/src/dom/DomEvent.js @@ -59,7 +59,7 @@ L.DomEvent = { } else if ('detachEvent' in obj) { obj.detachEvent("on" + type, handler); } - obj[key] = null; + delete obj[key]; }, _checkMouse: function(el, e) {