(vnode)
| 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) { |
no test coverage detected