(parentElm, vnodes, startIdx, endIdx)
| 4783 | } |
| 4784 | |
| 4785 | function removeVnodes (parentElm, vnodes, startIdx, endIdx) { |
| 4786 | for (; startIdx <= endIdx; ++startIdx) { |
| 4787 | var ch = vnodes[startIdx]; |
| 4788 | if (isDef(ch)) { |
| 4789 | if (isDef(ch.tag)) { |
| 4790 | removeAndInvokeRemoveHook(ch); |
| 4791 | invokeDestroyHook(ch); |
| 4792 | } else { // Text node |
| 4793 | removeNode(ch.elm); |
| 4794 | } |
| 4795 | } |
| 4796 | } |
| 4797 | } |
| 4798 | |
| 4799 | function removeAndInvokeRemoveHook (vnode, rm) { |
| 4800 | if (isDef(rm) || isDef(vnode.data)) { |
no test coverage detected