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

Function createComponent

render/render.js:153–163  ·  view source on GitHub ↗
(parent, vnode, hooks, ns, nextSibling)

Source from the content-addressed store, hash-verified

151 sentinel.$$reentrantLock$$ = null
152 }
153 function createComponent(parent, vnode, hooks, ns, nextSibling) {
154 initComponent(vnode, hooks)
155 if (vnode.instance != null) {
156 createNode(parent, vnode.instance, hooks, ns, nextSibling)
157 vnode.dom = vnode.instance.dom
158 vnode.domSize = vnode.dom != null ? vnode.instance.domSize : 0
159 }
160 else {
161 vnode.domSize = 0
162 }
163 }
164
165 //update
166 /**

Callers 6

createNodeFunction · 0.70
test-component.jsFile · 0.50
test-onremove.jsFile · 0.50

Calls 2

initComponentFunction · 0.70
createNodeFunction · 0.70

Tested by

no test coverage detected