fix IE7 error (it sometimes doesn't like the delete statement)

This commit is contained in:
Mourner 2011-01-18 12:03:38 +02:00
parent 2088223229
commit 62e947f4cc

View File

@ -31,8 +31,8 @@ L.DomEvent = {
obj.removeEventListener(type, handler, false);
} else if ('detachEvent' in obj) {
obj.detachEvent("on" + type, handler);
delete obj[key];
}
obj[key] = null;
},
_getEvent: function()/*->Event*/ {