Add/remove DOM events
JavaScript
Latest commit e70d107 Apr 9, 2016 @TehShrike TehShrike Republishing as 1.0.0
Fixes #12
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js Tests passing with tape-run Apr 9, 2016

README.md

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!')
}