@f/dom-events

1.0.4 • Public • Published

dom-events

Git tag NPM version Code style

A list of all DOM events (probably not totally complete, but feel free to send a PR if one you want isn't included), exported as an array.

Installation

$ npm install @f/dom-events

Usage

var domEvents = require('@f/dom-events')

function delegate (root) {
  domEvents.forEach(function (name) {
    root.addEventListener(name, function () {
      // delegate the event
    })
  })
}

License

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @f/dom-events

    Weekly Downloads

    3

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • f