/prefixed-event

Primary LanguageJavaScriptMIT LicenseMIT

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