node package manager

on-off

Add/remove DOM events

on-off

Add/remove DOM events

$ npm install dom-event
var on = require('on-off')
var off = on.off
 
on(document.body, 'click', hello) // adds the event listener 
off(document.body, 'click', hello) // removes 
 
function hello () {
  console.log('hello!')
}

Version 1.0.0: Added test runner and removed IE8 support Version 0.0.3: Republished 0.0.2 Version 0.0.2: Original version pre-liberation

BSD, originally developed by Azer Koçulu, maintained by Federico Brigante