jsx-dom-cjs
Advanced tools
Comparing version 8.0.3 to 8.0.4
12
index.js
@@ -453,3 +453,13 @@ /* eslint-disable */ | ||
} else { | ||
node.addEventListener(attribute.substring(2), value) | ||
let eventName | ||
if (attribute in window) { | ||
let standardEventName = attribute.substring(2) | ||
eventName = standardEventName | ||
} else { | ||
let cutomEventName = attribute[2] + key.slice(3) | ||
eventName = cutomEventName | ||
} | ||
node.addEventListener(eventName, value) | ||
} | ||
@@ -456,0 +466,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export { jsx, jsxs, Fragment, JSX } from "./index" | ||
export { jsx, jsxs, jsx as jsxDEV, Fragment, JSX } from "./index" |
@@ -20,2 +20,8 @@ /* eslint-disable */ | ||
}) | ||
Object.defineProperty(exports, "jsxDEV", { | ||
enumerable: true, | ||
get: function () { | ||
return jsxDomCjs.jsx | ||
}, | ||
}) | ||
Object.defineProperty(exports, "jsxs", { | ||
@@ -22,0 +28,0 @@ enumerable: true, |
@@ -303,3 +303,13 @@ /* eslint-disable */ | ||
} else { | ||
node.addEventListener(attribute.substring(2), value) | ||
let eventName | ||
if (attribute in window) { | ||
let standardEventName = attribute.substring(2) | ||
eventName = standardEventName | ||
} else { | ||
let cutomEventName = attribute[2] + key.slice(3) | ||
eventName = cutomEventName | ||
} | ||
node.addEventListener(eventName, value) | ||
} | ||
@@ -306,0 +316,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export { jsx, jsxs, Fragment, JSX } from "./index" | ||
export { jsx, jsxs, jsx as jsxDEV, Fragment, JSX } from "./index" |
@@ -20,2 +20,8 @@ /* eslint-disable */ | ||
}) | ||
Object.defineProperty(exports, "jsxDEV", { | ||
enumerable: true, | ||
get: function () { | ||
return min.jsx | ||
}, | ||
}) | ||
Object.defineProperty(exports, "jsxs", { | ||
@@ -22,0 +28,0 @@ enumerable: true, |
{ | ||
"name": "jsx-dom-cjs", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"description": "JSX to document.createElement.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
129732
3222