MCPcopy Create free account
hub / github.com/TruthHun/BookStack / initComponent

Function initComponent

static/vuejs/vue.runtime.js:4662–4677  ·  view source on GitHub ↗
(vnode, insertedVnodeQueue)

Source from the content-addressed store, hash-verified

4660 }
4661
4662 function initComponent (vnode, insertedVnodeQueue) {
4663 if (isDef(vnode.data.pendingInsert)) {
4664 insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
4665 }
4666 vnode.elm = vnode.componentInstance.$el;
4667 if (isPatchable(vnode)) {
4668 invokeCreateHooks(vnode, insertedVnodeQueue);
4669 setScope(vnode);
4670 } else {
4671 // empty component root.
4672 // skip all element-related modules except for ref (#3455)
4673 registerRef(vnode);
4674 // make sure to invoke the insert hook
4675 insertedVnodeQueue.push(vnode);
4676 }
4677 }
4678
4679 function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
4680 var i;

Callers 2

createComponentFunction · 0.70
hydrateFunction · 0.70

Calls 5

isDefFunction · 0.70
isPatchableFunction · 0.70
invokeCreateHooksFunction · 0.70
setScopeFunction · 0.70
registerRefFunction · 0.70

Tested by

no test coverage detected