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