dom-bind

1.0.0 • Public • Published

dom-bind

DOM event binding and delegation.

Installation

Browserify recommended.

$ npm install dom-bind

In the codes:

var ev = require('dom-bind');

API

Events

du.bind(el, evtType, cb, [useCapture])

du.bind_c(el, evtType, cb, [useCapture])

As above, but returns a cancellation function.

du.delegate(el, evtType, selector, cb, [useCapture])

du.delegate_c(el, evtType, selector, cb, [useCapture])

As above, but returns a cancellation function.

du.unbind(el, evtType, cb, [useCapture])

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    32
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    32

Package Sidebar

Install

npm i dom-bind

Weekly Downloads

32

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jaz303