Skip to content

Commit

Permalink
Merge pull request #158 from mstijak/master
Browse files Browse the repository at this point in the history
Small fix for problems caused by `false` nodes.
  • Loading branch information
trueadm committed Mar 27, 2016
2 parents 01228fc + af163f4 commit e863941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DOM/mounting.js
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e863941

Please sign in to comment.