Bundled output for commit 39c20bdb34 [skip ci]
This commit is contained in:
parent
39c20bdb34
commit
65e2561c55
5 changed files with 13 additions and 11 deletions
|
|
@ -18,7 +18,7 @@ mithril.js [](https://ww
|
||||||
|
|
||||||
## What is Mithril?
|
## What is Mithril?
|
||||||
|
|
||||||
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->8.86 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
|
A modern client-side Javascript framework for building Single Page Applications. It's small (<!-- size -->8.88 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
|
||||||
|
|
||||||
Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
|
Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,11 +133,12 @@ function hyperscript(selector) {
|
||||||
}
|
}
|
||||||
var vnode = hyperscriptVnode.apply(1, arguments)
|
var vnode = hyperscriptVnode.apply(1, arguments)
|
||||||
if (typeof selector === "string") {
|
if (typeof selector === "string") {
|
||||||
return execSelector(selectorCache[selector] || compileSelector(selector), vnode)
|
vnode.children = Vnode.normalizeChildren(vnode.children)
|
||||||
} else {
|
if (selector !== "[") return execSelector(selectorCache[selector] || compileSelector(selector), vnode)
|
||||||
vnode.tag = selector
|
|
||||||
return vnode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vnode.tag = selector
|
||||||
|
return vnode
|
||||||
}
|
}
|
||||||
hyperscript.trust = function(html) {
|
hyperscript.trust = function(html) {
|
||||||
if (html == null) html = ""
|
if (html == null) html = ""
|
||||||
|
|
|
||||||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -131,11 +131,12 @@ function hyperscript(selector) {
|
||||||
}
|
}
|
||||||
var vnode = hyperscriptVnode.apply(1, arguments)
|
var vnode = hyperscriptVnode.apply(1, arguments)
|
||||||
if (typeof selector === "string") {
|
if (typeof selector === "string") {
|
||||||
return execSelector(selectorCache[selector] || compileSelector(selector), vnode)
|
vnode.children = Vnode.normalizeChildren(vnode.children)
|
||||||
} else {
|
if (selector !== "[") return execSelector(selectorCache[selector] || compileSelector(selector), vnode)
|
||||||
vnode.tag = selector
|
|
||||||
return vnode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vnode.tag = selector
|
||||||
|
return vnode
|
||||||
}
|
}
|
||||||
hyperscript.trust = function(html) {
|
hyperscript.trust = function(html) {
|
||||||
if (html == null) html = ""
|
if (html == null) html = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue