custom-event-emitter
custom-event-emitter is a browser mixin that makes emitting CustomEvent objects really simple.
install
$ npm install custom-event-emitter
usage
var emitter = var element = document // Adds an emit function to the element.// (the second argument is optional)emitter element element
You can run the above example like so:
$ npm run example