0.0.2 • Published 8 years ago

bianco-events v0.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

bianco-events

Build Status NPM version NPM downloads MIT License

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 separated
  • remove(node/s, events, callback) remove a listener for one or more events space separated
  • once(node/s, events, callback) add a listener for one or more events space separated that will be triggered only once