Closed phloe closed 9 years ago
fixed by 95b9e723a27da2e04bd3f816634e886c985625e4
@azer This issue wasn't actually fixed by 95b9e72 - it still uses .call
.
Why not just do:
(element.removeEventListener || element.detachEvent)(event, callback, capture);
instead of:
(element.removeEventListener || element.detachEvent).call(element, event, callback, capture);
@rasmusfl0e could u send a PR for that ? I couldn't merge your PR because it was refactoring the entire thing
@azer Done ;)
Trying to add a scroll event on the window object fails in IE8:
"Object doesn't support this property or method"
Seems like you can't use call on
window.attachEvent
:https://github.com/npm-dom/dom-event/blob/master/index.js#L6