@maximdevoir/event-listener
v0.11.6
Published
EventListener handles the adding and removing of events throughout your document. Works with old browsers that use attachEvent and detachEvent (IE 8 and below).
Downloads
3
Readme
Event Listener
Event Listener handles the adding and removing of events throughout your document. Works with old browsers that use attachEvent and detachEvent (IE 8 and below).
Installation
yarn add @maximdevoir/event-listener
Usage
import eventListener from '@maximdevoir/event-listener'
eventListener.add(window, 'focus', function() { ... })
eventListener.remove(window, 'focus', function() { ... })
Contributing
Cutting a Release
The release workflow will automatically publish to NPM when you publish a release via the GitHub UI