(parentElm, vnodes, startIdx, endIdx)
| 8468 | } |
| 8469 | |
| 8470 | function removeVnodes(parentElm, vnodes, startIdx, endIdx) { |
| 8471 | for (; startIdx <= endIdx; ++startIdx) { |
| 8472 | var ch = vnodes[startIdx]; |
| 8473 | if (isDef(ch)) { |
| 8474 | if (isDef(ch.tag)) { |
| 8475 | removeAndInvokeRemoveHook(ch); |
| 8476 | invokeDestroyHook(ch); |
| 8477 | } else { // Text node |
| 8478 | removeNode(ch.elm); |
| 8479 | } |
| 8480 | } |
| 8481 | } |
| 8482 | } |
| 8483 | |
| 8484 | function removeAndInvokeRemoveHook(vnode, rm) { |
| 8485 | if (isDef(rm) || isDef(vnode.data)) { |
no test coverage detected