babel-plugin-transform-event
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "babel-plugin-transform-event", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "add support e.scrElement e.returnValue e.cancelBubble in IE8", | ||
@@ -5,0 +5,0 @@ "main": "dest/index.js", |
# Babel-plugin-event-target | ||
Transform `e.target` to `e.target || e.srcElement` | ||
* `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()` | ||
9340
9