once-events
Wait for multiple DOM events
Install
$ npm install --save once-events
Usage
var onceEvents =
API
onceEvents(targets, event, callback)
-> undefined
targets
Required
Type: array[eventTarget]
An array of DOM EventTargets.
event
Required
Type: string
The event to listen on.
callback
Required
Type: function
Arguments: events
A callback called with an array of events. The order matches the order of the targets, not the order in which the events ocurred.
License
MIT © Ben Drucker