eventie
Event binding helper
Last updated 11 years ago by desandro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eventie 
SYNC missed versions from official npm registry.

eventie - event binding helper

Makes dealing with events in IE8 bearable. Supported by IE8+ and good browsers.

var elem = document.querySelector('#my-elem');
function onElemClick( event ) {
  console.log( event.type + ' just happened on #' + event.target.id );
  // -> click just happened on #my-elem
}

eventie.bind( elem, 'click', onElemClick );

eventie.unbind( elem, 'click', onElemClick );

Install

Download eventie.js

Install with Bower :bird: bower install eventie

Install with npm :truck: npm install eventie

Install with Component :nut_and_bolt: component install desandro/eventie

IE 8

eventie add support for event.target and .handleEvent method for Internet Explorer 8.

MIT license

eventie is released under the MIT license.

Current Tags

  • 1.0.6                                ...           latest (11 years ago)

2 Versions

  • 1.0.6                                ...           11 years ago
  • 1.0.5                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |