1.0.0 • Published 6 years ago
dom-event-dispatch v1.0.0
dom-event-dispatch
Install
npm install dom-event-dispatch
Usage
import { dispatchEvent } from 'dom-event-dispatch';
document.body.addEventListener('bla', e=>{
console.log('totally blad');
});
dispatchEvent(document.body, 'bla');
About
This module supports ie9+, and all other browsers. Use it to fire the Event()
constructor.
1.0.0
6 years ago