prefixed-event
v1.0.4
Published
Add and remove event listeners for events that require vendor prefixes.
Downloads
331
Readme
prefixed-event
Simplifies addEventListener
and removeEventListener
for events that require vendor prefixes.
Adapted from Craig Buckler's article.
Install
npm install prefixed-event
Usage
var prefixedEvent = require('prefixed-event')
var el = document.querySelector('.something-animated')
function doSomething(){
prefixedEvent.remove(el, 'AnimationEnd', doSomething)
}
prefixedEvent.add(el, 'AnimationEnd', doSomething )
Testing
- Uses browserify
- Uses
testem
make test