iee
v0.1.4
Published
IE event shims.
Downloads
1
Readme
IE event shims.
var IEE = require('iee')
function onClick (e) {
e.preventDefault() // not work on IE
var ev = new IEE(e)
ev.preventDefault() // work on IE and modern browsers
}
Install
$ npm install --save iee
# Or use yarn
$ yarn add --dev iee
Usage
import IEE from 'iee'
const handler = (e) => {
const ev = new IEE(e)
console.log(ev.target)
console.log(ev.preventDefault)
console.log(ev.stopPropagation)
}