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

Function updateHTML

render/render.js:457–463  ·  view source on GitHub ↗
(parent, old, vnode, ns, nextSibling)

Source from the content-addressed store, hash-verified

455 vnode.dom = old.dom
456 }
457 function updateHTML(parent, old, vnode, ns, nextSibling) {
458 if (old.children !== vnode.children) {
459 toFragment(old)
460 createHTML(parent, vnode, ns, nextSibling)
461 }
462 else vnode.dom = old.dom, vnode.domSize = old.domSize
463 }
464 function updateFragment(parent, old, vnode, hooks, nextSibling, ns) {
465 updateNodes(parent, old.children, vnode.children, hooks, nextSibling, ns)
466 var domSize = 0, children = vnode.children

Callers 1

updateNodeFunction · 0.70

Calls 2

toFragmentFunction · 0.70
createHTMLFunction · 0.70

Tested by

no test coverage detected