Skip to content

Commit 7f14eae

Browse files
authored
Merge pull request #2 from keyserfaty/master
Fix bug when adding empty components
2 parents cc51b71 + 5be05af commit 7f14eae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vhtml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function h(name, attrs) {
1313

1414
// Sortof component support!
1515
if (typeof name==='function') {
16-
attrs.children = stack.reverse();
16+
if (attrs) attrs.children = stack.reverse();
1717
return name(attrs);
1818
// return name(attrs, stack.reverse());
1919
}

0 commit comments

Comments
 (0)