@ -628,9 +628,13 @@ function reconcile(state, array, anchor, flags, get_key) {
var controlled _anchor = ( flags & EACH _IS _CONTROLLED ) !== 0 && length === 0 ? anchor : null ;
var controlled _anchor = ( flags & EACH _IS _CONTROLLED ) !== 0 && length === 0 ? anchor : null ;
if ( is _animated ) {
if ( is _animated ) {
// Doing all the reads _then_ all the writes minimises layout flushes
// Doing all the reads _then_ all the writes minimises layout flushes.
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . measure ( ) ;
// `measure` and `capture_size` are both reads, so they share a loop.
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . capture _size ( ) ;
for ( i = 0 ; i < destroy _length ; i += 1 ) {
var am = to _destroy [ i ] . nodes ? . a ;
am ? . measure ( ) ;
am ? . capture _size ( ) ;
}
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . set _position ( ) ;
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . set _position ( ) ;
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . set _transform ( ) ;
for ( i = 0 ; i < destroy _length ; i += 1 ) to _destroy [ i ] . nodes ? . a ? . set _transform ( ) ;
}
}