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

Function setScope

static/vuejs/vue.runtime.esm.js:4746–4761  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

4744 // this is implemented as a special case to avoid the overhead
4745 // of going through the normal attribute patching process.
4746 function setScope (vnode) {
4747 var i;
4748 var ancestor = vnode;
4749 while (ancestor) {
4750 if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
4751 nodeOps.setAttribute(vnode.elm, i, '');
4752 }
4753 ancestor = ancestor.parent;
4754 }
4755 // for slot content they should also get the scopeId from the host instance.
4756 if (isDef(i = activeInstance) &&
4757 i !== vnode.context &&
4758 isDef(i = i.$options._scopeId)) {
4759 nodeOps.setAttribute(vnode.elm, i, '');
4760 }
4761 }
4762
4763 function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
4764 for (; startIdx <= endIdx; ++startIdx) {

Callers 2

createElmFunction · 0.70
initComponentFunction · 0.70

Calls 2

isDefFunction · 0.70
setAttributeMethod · 0.45

Tested by

no test coverage detected