dom-event
Add/remove DOM events
Last updated 4 years ago by tehshrike .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dom-event 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

9 Versions

  • 1.0.0                                ...           4 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
  • 0.0.0                                ...           6 years ago
  • 0.0.1-security                                ...           4 years ago
  • 2.0.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |