normalize-event

0.0.0 • Public • Published

normalize-event

normalize-event is a function that provides basic DOM Event support in IE8 and below.

Install

$ npm install normalize-event

Example

var normalize = require('normalize-event')
 
document.body.onclick = function(e) {
  e = normalize(e)
 
  e.preventDefault()
  e.stopPropagation()
  alert(e.target)
}

License

MIT

Package Sidebar

Install

npm i normalize-event

Weekly Downloads

10

Version

0.0.0

License

MIT

Last publish

Collaborators

  • michaelrhodes