1.0.6 • Published 9 years ago

dom-on v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dom-on

NPM version build status Test coverage Downloads js-standard-style

Alias a DOM node's .addEventListener() to .on().

Installation

$ npm install dom-on

Usage

const on = require('dom-on')

const button = document.createElement('button')
on(button)

button.on('click', () => console.log('oOOoooOOoooO!'))

See Also

  • dom-wrap - Make dom elements easier to work with

License

MIT

1.0.6

9 years ago

1.0.5

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago