babel-plugin-transform-event
v0.0.6
Published
add support e.scrElement e.returnValue e.cancelBubble in IE8
Downloads
19
Readme
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)