avant

0.2.0 • Public • Published

avant

Cross-browser JavaScript events module

$ npm install avant --save

Basic usage

var avant = require('avant');
avant.listen(document, 'click', function(event) {
  console.log(event)
});

API

avant.listen(node, type, listener)

  • Add an event listener for the specified event type

avant.unlisten(node, type, listener)

  • Remove the event listener for the specified event type

avant.support(type, node|tagname?)

  • Detect if the node supports the event type
  • boolean

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    3
  • 0.1.0
    2
  • 0.0.0
    2

Package Sidebar

Install

npm i avant

Weekly Downloads

6

Version

0.2.0

License

MIT

Last publish

Collaborators

  • ryanve