Skip to content

Commit

Permalink
check for no vnode as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Feb 12, 2017
1 parent 9309af7 commit baee064
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
nodeName = node.nodeName.toLowerCase();
}

if (vnode && vnode.meta.shouldRender) {
if (vnode && vnode.meta.shouldRender || !vnode) {
if (!node) {
// No node, add it
parent.appendChild(createNodeFromVNode(vnode, instance));
Expand Down
Loading

0 comments on commit baee064

Please sign in to comment.