npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

prefixed-event

1.0.4 • Public • Published

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

Keywords

none

install

npm i prefixed-event

Downloadsweekly downloads

775

version

1.0.4

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability