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

Function insertNode

render/render.js:603–606  ·  view source on GitHub ↗
(parent, dom, nextSibling)

Source from the content-addressed store, hash-verified

601 }
602
603 function insertNode(parent, dom, nextSibling) {
604 if (nextSibling != null) parent.insertBefore(dom, nextSibling)
605 else parent.appendChild(dom)
606 }
607
608 function setContentEditable(vnode) {
609 var children = vnode.children

Callers 5

createTextFunction · 0.70
createHTMLFunction · 0.70
createFragmentFunction · 0.70
createElementFunction · 0.70
updateNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected