From af163f426c4cf9bfd1d4cfdbf8c3e490718f0859 Mon Sep 17 00:00:00 2001 From: Marko Stijak Date: Sun, 27 Mar 2016 20:00:22 +0200 Subject: [PATCH] small fix for `false` nodes --- src/DOM/mounting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DOM/mounting.js b/src/DOM/mounting.js index d3017be1d..cd35c5d83 100644 --- a/src/DOM/mounting.js +++ b/src/DOM/mounting.js @@ -71,7 +71,7 @@ export function mountChildren(node, children, parentDom, namespace, lifecycle, c } function mountRef(instance, value, dom) { - if (!isNullOrUndefined(instance) && isString(value)) { + if (!isInvalidNode(instance) && isString(value)) { instance.refs[value] = dom; } } @@ -161,7 +161,7 @@ function placeholder(node, parentDom) { if (parentDom !== null) { parentDom.appendChild(dom); } - if (!isNullOrUndefined(node)) { + if (!isInvalidNode(node)) { node.dom = dom; } return dom;