Closed andrejpavlovic closed 6 years ago
@andrejpavlovic Maybe write that up as a PR?
@jbreckmckye when are we merging #13 so this gets closed?
@davidpelayo I don't know. When ARE we? I'm not a project admin, you tell me.
Fair enough 😆 @krambuhl, when #13 gets merged?
In the meanwhile, you can use this fork which has @andrejpavlovic and @shrpne's changes https://www.npmjs.com/package/@playlyfe/custom-event-polyfill
PR has been merged, closing this ticket.
The polyfill test always fails and as a result the browser never uses the native implementation even when it is available.
The issue is with this code: https://github.com/krambuhl/custom-event-polyfill/blob/71749f01e4e8e3e7e52ffb646bb50c4f78f87961/custom-event-polyfill.js#L7-L15
Instead of
is should be
otherwise
ce.defaultPrevented
always equals tofalse
and the error is always thrown.