@@ -5797,7 +5797,7 @@ function createPatchFunction (backend) {
5797
5797
}
5798
5798
}
5799
5799
5800
- function removeVnodes ( parentElm , vnodes , startIdx , endIdx ) {
5800
+ function removeVnodes ( vnodes , startIdx , endIdx ) {
5801
5801
for ( ; startIdx <= endIdx ; ++ startIdx ) {
5802
5802
var ch = vnodes [ startIdx ] ;
5803
5803
if ( isDef ( ch ) ) {
@@ -5908,7 +5908,7 @@ function createPatchFunction (backend) {
5908
5908
refElm = isUndef ( newCh [ newEndIdx + 1 ] ) ? null : newCh [ newEndIdx + 1 ] . elm ;
5909
5909
addVnodes ( parentElm , refElm , newCh , newStartIdx , newEndIdx , insertedVnodeQueue ) ;
5910
5910
} else if ( newStartIdx > newEndIdx ) {
5911
- removeVnodes ( parentElm , oldCh , oldStartIdx , oldEndIdx ) ;
5911
+ removeVnodes ( oldCh , oldStartIdx , oldEndIdx ) ;
5912
5912
}
5913
5913
}
5914
5914
@@ -5985,7 +5985,7 @@ function createPatchFunction (backend) {
5985
5985
if ( isDef ( oldVnode . text ) ) { nodeOps . setTextContent ( elm , '' ) ; }
5986
5986
addVnodes ( elm , null , ch , 0 , ch . length - 1 , insertedVnodeQueue ) ;
5987
5987
} else if ( isDef ( oldCh ) ) {
5988
- removeVnodes ( elm , oldCh , 0 , oldCh . length - 1 ) ;
5988
+ removeVnodes ( oldCh , 0 , oldCh . length - 1 ) ;
5989
5989
} else if ( isDef ( oldVnode . text ) ) {
5990
5990
nodeOps . setTextContent ( elm , '' ) ;
5991
5991
}
@@ -6216,7 +6216,7 @@ function createPatchFunction (backend) {
6216
6216
6217
6217
// destroy old node
6218
6218
if ( isDef ( parentElm$1 ) ) {
6219
- removeVnodes ( parentElm$1 , [ oldVnode ] , 0 , 0 ) ;
6219
+ removeVnodes ( [ oldVnode ] , 0 , 0 ) ;
6220
6220
} else if ( isDef ( oldVnode . tag ) ) {
6221
6221
invokeDestroyHook ( oldVnode ) ;
6222
6222
}
0 commit comments