1.0.0 • Published 8 years ago
@f/event-constructors v1.0.0
event-constructors
A map of DOM event names to their constructors
Installation
$ npm install @f/event-constructors
Usage
var events = require('@f/event-constructors')
function createEvent (type, opts) {
return new events[type](type, opts)
}
License
MIT
1.0.0
8 years ago