customevent
Ponyfill for
CustomEvent
Install
$ npm install --save customevent
Usage
const customEvent = ; const event = 'click' cancelable: true bubbles: false detail: foo: 'bar' ;
API
customEvent(typeArg, [customEventInit])
Creates a custom event and returns an event
typeArg
Type: string
A DOMString representing the name of the event.
customEventInit (optional)
Type: object
License
MIT © Alex Cross