diff options
Diffstat (limited to 'thirdparty/preact/src/dom/index.js')
-rw-r--r-- | thirdparty/preact/src/dom/index.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/thirdparty/preact/src/dom/index.js b/thirdparty/preact/src/dom/index.js index 248a3cdc5..b72d056af 100644 --- a/thirdparty/preact/src/dom/index.js +++ b/thirdparty/preact/src/dom/index.js @@ -1,4 +1,4 @@ -import { ATTR_KEY, NON_DIMENSION_PROPS, NON_BUBBLING_EVENTS } from '../constants'; +import { NON_DIMENSION_PROPS, NON_BUBBLING_EVENTS } from '../constants'; import options from '../options'; import { toLowerCase, isString, isFunction, hashToClassName } from '../util'; @@ -20,8 +20,7 @@ export function removeNode(node) { * @param {any} previousValue The last value that was set for this name/node pair * @private */ -export function setAccessor(node, name, value, old, isSvg) { - node[ATTR_KEY][name] = value; +export function setAccessor(node, name, old, value, isSvg) { if (name==='className') name = 'class'; @@ -29,8 +28,8 @@ export function setAccessor(node, name, value, old, isSvg) { value = hashToClassName(value); } - if (name==='key' || name==='children' || name==='innerHTML') { - // skip these + if (name==='key') { + // ignore } else if (name==='class' && !isSvg) { node.className = value || ''; |