File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,9 @@ class Morph {
460460 const candidateNodes : Set < number > = new Set ( )
461461 const candidateElements : Set < number > = new Set ( )
462462
463+ const unmatchedNodes : Set < number > = new Set ( )
464+ const unmatchedElements : Set < number > = new Set ( )
465+
463466 const matches : Array < ChildNode | null > = Array . from ( { length : toChildNodes . length } , ( ) => null )
464467
465468 for ( let i = 0 ; i < fromChildNodes . length ; i ++ ) {
@@ -468,9 +471,6 @@ class Morph {
468471 else candidateNodes . add ( i )
469472 }
470473
471- const unmatchedElements : Set < number > = new Set ( )
472- const unmatchedNodes : Set < number > = new Set ( )
473-
474474 for ( let i = 0 ; i < toChildNodes . length ; i ++ ) {
475475 const node = toChildNodes [ i ] !
476476 if ( isElement ( node ) ) unmatchedElements . add ( i )
You can’t perform that action at this time.
0 commit comments