Bundled output for commit 1d608b6613 [skip ci]

This commit is contained in:
Gandalf-the-Bot 2017-01-23 15:53:59 +00:00
parent 1d608b6613
commit 233d92b732
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ Vnode.normalizeChildren = function normalizeChildren(children) {
var selectorParser = /(?:(^|#|\.)([^#\.\[\]]+))|(\[(.+?)(?:\s*=\s*("|'|)((?:\\["'\]]|.)*?)\5)?\])/g
var selectorCache = {}
function hyperscript(selector) {
if (selector == null || typeof selector !== "string" && selector.view == null) {
if (selector == null || typeof selector !== "string" && typeof selector.view !== "function") {
throw Error("The selector must be either a string or a component.");
}
if (typeof selector === "string" && selectorCache[selector] === undefined) {