dom-event

Add/remove DOM events

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dom-event
3441.0.07 years ago9 years agoMinified + gzip package size for dom-event in KB

Readme

dom-event

Add/remove DOM events

Install

$ npm install dom-event

Usage

var on = require('dom-event')
var off = on.off

on(document.body, 'click', hello) // adds the event listener
off(document.body, 'click', hello) // removes

function hello () {
  console.log('hello!')
}