0.0.2 • Published 8 years ago
bianco-events v0.0.2
bianco-events
Modern DOM events helpers written in es2015
This script will not be transpiled and it is only thought to be part of your build chain.
Usage
import { add, remove, once } from 'bianco-events'
add(node/s, 'click mouseenter', function(e) {
console.log('tadaaa!')
})
API
add(node/s, events, callback)
add a listener for one or more events space separatedremove(node/s, events, callback)
remove a listener for one or more events space separatedonce(node/s, events, callback)
add a listener for one or more events space separated that will be triggered only once