Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts: mithril.min.js
This commit is contained in:
commit
dca217f379
3 changed files with 41 additions and 33 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue