Merge remote-tracking branch 'origin/rewrite' into rewrite

Conflicts:
	mithril.min.js
This commit is contained in:
Leo Horie 2016-08-11 00:32:01 -04:00
commit dca217f379
3 changed files with 41 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 = {}