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