0.1.4 • Published 6 years ago

iee v0.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

npm downloads PRs Welcome MIT License

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)
}
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago