1.0.0 • Published 6 years ago

dom-event-dispatch v1.0.0

Weekly downloads
19
License
MIT
Repository
github
Last release
6 years ago

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.