babel-plugin-transform-event

0.0.6 • Public • Published

Babel-plugin-event-target

  • e.target => e.target || e.srcElement
  • e.preventDefault() => e.preventDefault ? e.preventDefault() : e.returnValue = false
  • e.stopPropagation() => e.stopPropagation ? e.stopPropagation() : e.cancelBubble = true
  • e.stopImmediatePropagation() => e.stopImmediatePropagation ? e.stopImmediatePropagation() : void(0)

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-transform-event

Weekly Downloads

0

Version

0.0.6

License

MIT

Last publish

Collaborators

  • chemzqm