Skip to content
Cross-browser JavaScript events module
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test
.gitattributes
.gitignore
GruntFile.js
README.md
avant.js
avant.min.js
package.json

README.md

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

Something went wrong with that request. Please try again.