@hirojs/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 E = require('dom-bind');

API

Events

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

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

As above, but returns a cancellation function.

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

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

As above, but returns a cancellation function.

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

Readme

Keywords

Package Sidebar

Install

npm i @hirojs/dom-bind

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

365 kB

Total Files

6

Last publish

Collaborators

  • jaz303