fix IE7 error (it sometimes doesn't like the delete statement)
This commit is contained in:
parent
2088223229
commit
62e947f4cc
@ -31,8 +31,8 @@ L.DomEvent = {
|
|||||||
obj.removeEventListener(type, handler, false);
|
obj.removeEventListener(type, handler, false);
|
||||||
} else if ('detachEvent' in obj) {
|
} else if ('detachEvent' in obj) {
|
||||||
obj.detachEvent("on" + type, handler);
|
obj.detachEvent("on" + type, handler);
|
||||||
delete obj[key];
|
|
||||||
}
|
}
|
||||||
|
obj[key] = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
_getEvent: function()/*->Event*/ {
|
_getEvent: function()/*->Event*/ {
|
||||||
|
Loading…
Reference in New Issue
Block a user