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

Function createNodes

render/render.js:40–47  ·  view source on GitHub ↗
(parent, vnodes, start, end, hooks, nextSibling, ns)

Source from the content-addressed store, hash-verified

38
39 //create
40 function createNodes(parent, vnodes, start, end, hooks, nextSibling, ns) {
41 for (var i = start; i < end; i++) {
42 var vnode = vnodes[i]
43 if (vnode != null) {
44 createNode(parent, vnode, hooks, ns, nextSibling)
45 }
46 }
47 }
48 function createNode(parent, vnode, hooks, ns, nextSibling) {
49 var tag = vnode.tag
50 if (typeof tag === "string") {

Callers 3

createFragmentFunction · 0.70
createElementFunction · 0.70
updateNodesFunction · 0.70

Calls 1

createNodeFunction · 0.70

Tested by

no test coverage detected