Skip to content

mnichols/prefixed-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published