Skip to content

Commit

Permalink
Merge pull request #2 from keyserfaty/master
Browse files Browse the repository at this point in the history
Fix bug when adding empty components
  • Loading branch information
developit authored Nov 5, 2016
2 parents cc51b71 + 5be05af commit 7f14eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function h(name, attrs) {

// Sortof component support!
if (typeof name==='function') {
attrs.children = stack.reverse();
if (attrs) attrs.children = stack.reverse();
return name(attrs);
// return name(attrs, stack.reverse());
}
Expand Down

0 comments on commit 7f14eae

Please sign in to comment.