customevent-polyfill icon indicating copy to clipboard operation
customevent-polyfill copied to clipboard

HTML CustomEvent Polyfill

CustomEvent Polyfill

HTML CustomEvent Polyfill that works with PhantomJS & modern browsers & packaged for component.io

Why?

Because MDN's polyfill has a typo & CustomEvents don't work in PhantomJS.

Usage

Assuming you're down with component, require it somewhere early on like so,

require('gss-preparser');
// ...

Or, just hack & paste CustomEvent.js