MCPcopy
hub / github.com/MithrilJS/mithril.js / Vnode

Function Vnode

mithril.js:3–5  ·  view source on GitHub ↗
(tag, key, attrs0, children, text, dom)

Source from the content-addressed store, hash-verified

1;(function() {
2"use strict"
3function Vnode(tag, key, attrs0, children, text, dom) {
4 return {tag: tag, key: key, attrs: attrs0, children: children, text: text, dom: dom, domSize: undefined, state: undefined, events: undefined, instance: undefined}
5}
6Vnode.normalize = function(node) {
7 if (Array.isArray(node)) return Vnode("[", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined)
8 if (node != null && typeof node !== "object") return Vnode("#", undefined, undefined, node === false ? "" : node, undefined, undefined)

Callers 9

mithril.jsFile · 0.70
execSelectorFunction · 0.70
hyperscriptFunction · 0.70
createElementFunction · 0.70
updateElementFunction · 0.70
run0Function · 0.70
run1Function · 0.70
runFunction · 0.50
runFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected