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/vdom/index.js | |
parent | b37e7762bb5492cbd6788863232e7d2634ab5e5c (diff) | |
parent | 6e5fb04d3f3f9a6cd43ac20896d73321dd079f96 (diff) | |
download | wallet-core-afb9fba64be1f15a3ce3ed31214a704e73e5e8bb.tar.xz |
Update preact version
Diffstat (limited to 'thirdparty/preact/src/vdom/index.js')
-rw-r--r-- | thirdparty/preact/src/vdom/index.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/thirdparty/preact/src/vdom/index.js b/thirdparty/preact/src/vdom/index.js index 50d4ca2b9..f59fbae21 100644 --- a/thirdparty/preact/src/vdom/index.js +++ b/thirdparty/preact/src/vdom/index.js @@ -33,9 +33,10 @@ export function isNamedNode(node, nodeName) { * @returns {Object} props */ export function getNodeProps(vnode) { - let defaultProps = vnode.nodeName.defaultProps, - props = clone(vnode.attributes); + let props = clone(vnode.attributes); + props.children = vnode.children; + let defaultProps = vnode.nodeName.defaultProps; if (defaultProps) { for (let i in defaultProps) { if (props[i]===undefined) { @@ -44,7 +45,5 @@ export function getNodeProps(vnode) { } } - if (vnode.children) props.children = vnode.children; - return props; } |