pull/451/head
Noj Vek 5 years ago
parent 5035aed23a
commit 69294d8cb6

@ -24,7 +24,7 @@ export function h(sel: string, data: VNodeData | null, children: VNodeChildren):
export function h(sel: any, b?: any, c?: any): VNode {
var data: VNodeData = {}, children: any, text: any, i: number;
if (c !== undefined) {
if (b !== null) data = b;
if (b !== null) { data = b; }
if (is.array(c)) { children = c; }
else if (is.primitive(c)) { text = c; }
else if (c && c.sel) { children = [c]; }

Loading…
Cancel
Save