1.0.0 • Published 8 years ago
patch.dom-event v1.0.0
dom-event
:warning: DEPRECATED :warning:
This module exists to fix some kik/Azer issues. New projects should not depend on this.
Add/remove DOM events
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!')
}
1.0.0
8 years ago