@@ -159,7 +159,7 @@ export const createFor = (
159
159
while ( right < commonLength ) {
160
160
const index = newLength - right - 1
161
161
const item = getItem ( source , index )
162
- const key = getKey . apply ( null , item )
162
+ const key = getKey ( ... item )
163
163
const block = oldBlocks [ oldLength - right - 1 ]
164
164
if ( block . key === key ) {
165
165
update ( block , ...item )
@@ -175,7 +175,7 @@ export const createFor = (
175
175
176
176
while ( left < commonLength - right ) {
177
177
const item = getItem ( source , left )
178
- const key = getKey . apply ( null , item )
178
+ const key = getKey ( ... item )
179
179
const oldBlock = oldBlocks [ left ]
180
180
const oldKey = oldBlock . key
181
181
if ( oldKey === key ) {
@@ -194,14 +194,14 @@ export const createFor = (
194
194
const prepareLength = Math . min ( newLength - right , commonLength )
195
195
for ( let i = left ; i < prepareLength ; i ++ ) {
196
196
const item = getItem ( source , i )
197
- const key = getKey . apply ( null , item )
197
+ const key = getKey ( ... item )
198
198
pendingNews [ l1 ++ ] = [ i , item , key ]
199
199
}
200
200
201
201
if ( ! l1 && ! l2 ) {
202
202
for ( let i = prepareLength ; i < newLength - right ; i ++ ) {
203
203
const item = getItem ( source , i )
204
- const key = getKey . apply ( null , item )
204
+ const key = getKey ( ... item )
205
205
mount ( source , i , item , key , defaultAnchor )
206
206
}
207
207
} else {
@@ -250,7 +250,7 @@ export const createFor = (
250
250
251
251
for ( let i = prepareLength ; i < newLength - right ; i ++ ) {
252
252
const item = getItem ( source , i )
253
- const key = getKey . apply ( null , item )
253
+ const key = getKey ( ... item )
254
254
moveOrMount ( i , item , key , - 1 )
255
255
}
256
256
0 commit comments