diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-08 15:07:07 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-08 15:19:39 +0100 |
commit | afb9fba64be1f15a3ce3ed31214a704e73e5e8bb (patch) | |
tree | 6f69712a8c976178c05144483ff0c8e9b09445c8 /thirdparty/preact/src/dom/index.js | |
parent | b37e7762bb5492cbd6788863232e7d2634ab5e5c (diff) | |
parent | 6e5fb04d3f3f9a6cd43ac20896d73321dd079f96 (diff) | |
download | wallet-core-afb9fba64be1f15a3ce3ed31214a704e73e5e8bb.tar.xz |
Update preact version
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 || ''; |