Skip to content
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.

desandro/eventie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🐦 bower install eventie

Install with npm 🚚 npm install eventie

Install with Component 🔩 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.

About

event binding helper

Resources

Stars

Watchers

Forks

Packages

No packages published