normalize-event
v0.0.0
Published
A function that provides basic DOM Event support in IE8 and below.
Downloads
133
Maintainers
Readme
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)
}