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