init state, fix examples

This commit is contained in:
Leo Horie 2016-05-15 11:14:38 -04:00
parent 5265697cb2
commit 5ec06e7c08
9 changed files with 137 additions and 20 deletions

View file

@ -63,6 +63,7 @@ function hyperscript(selector) {
}
if (typeof selector === "string") return selectorCache[selector](attrs || {}, Node.normalizeChildren(children))
return Node(selector, attrs && attrs.key, attrs || {}, Node.normalizeChildren(children), undefined, undefined)
}