Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bug when adding empty components
  • Loading branch information
keyserfaty committed Nov 4, 2016
commit 5be05af5011b515f352b7eb47046b04bd31a1dbd
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