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) {