From cf4ef82f9a425c98d5a3eefd2c1012140aeb7680 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Thu, 6 Oct 2022 22:18:07 -0600 Subject: [PATCH] Improve parameter names, see https://github.com/phetsims/tandem/issues/273 --- js/common/view/CardNodeContainer.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/common/view/CardNodeContainer.ts b/js/common/view/CardNodeContainer.ts index f152fa5f..7adda7c3 100644 --- a/js/common/view/CardNodeContainer.ts +++ b/js/common/view/CardNodeContainer.ts @@ -631,15 +631,15 @@ const CardNodeContainerIO = new IOType( 'CardNodeContainerIO', { cardNodes: n.cardNodeCells.map( cardNode => CardNodeReferenceIO.toStateObject( cardNode ) ) }; }, - applyState: ( n: CardNodeContainer, state: CardNodeContainerState ) => { + applyState: ( cardNodeContainer: CardNodeContainer, state: CardNodeContainerState ) => { const cardNodes = state.cardNodes.map( ( element: ReferenceIOState ) => CardNodeReferenceIO.fromStateObject( element ) ); - n.cardNodeCells.length = 0; - n.cardNodeCells.push( ...cardNodes ); - n.cardNodeCells.forEach( cardNode => { - n.sendToHomeCell( cardNode, false ); + cardNodeContainer.cardNodeCells.length = 0; + cardNodeContainer.cardNodeCells.push( ...cardNodes ); + cardNodeContainer.cardNodeCells.forEach( cardNode => { + cardNodeContainer.sendToHomeCell( cardNode, false ); } ); - n.cardNodeCellsChangedEmitter.emit(); + cardNodeContainer.cardNodeCellsChangedEmitter.emit(); }, stateSchema: { cardNodes: ArrayIO( ReferenceIO( CardNodeReferenceIO ) )