Bundled output for commit b2189a524f [skip ci]

This commit is contained in:
Gandalf-the-Bot 2016-08-10 20:58:58 +00:00
parent b2189a524f
commit 54c58d83d8
2 changed files with 37 additions and 33 deletions

View file

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