Skip to content

Commit

Permalink
convert PhetioDynamicElementContainer.ts to more typescript, phetsims…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 18, 2022
1 parent 9c806ea commit 1d53762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/charges-and-fields/view/ChargesAndFieldsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class ChargesAndFieldsScreenView extends ScreenView {
model.chargesAndSensorsEnclosureBoundsProperty.get(),
tandem
);
}, [ model.chargedParticleGroup.archetype ], {
}, () => [ model.chargedParticleGroup.archetype ], {
tandem: tandem.createTandem( 'chargedParticleNodeGroup' ),
phetioType: PhetioGroup.PhetioGroupIO( Node.NodeIO ),

Expand All @@ -301,7 +301,7 @@ class ChargesAndFieldsScreenView extends ScreenView {
);

return electricFieldSensorNode;
}, [ model.electricFieldSensorGroup.archetype ], {
}, () => [ model.electricFieldSensorGroup.archetype ], {
tandem: tandem.createTandem( 'electricFieldSensorNodeGroup' ),
phetioType: PhetioGroup.PhetioGroupIO( Node.NodeIO ),

Expand Down
2 changes: 1 addition & 1 deletion js/charges-and-fields/view/ElectricPotentialLinesNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ElectricPotentialLinesNode extends Node {

const electricPotentialLineViewGroup = new PhetioGroup( ( tandem, electricPotentialLine ) => {
return new ElectricPotentialLineView( electricPotentialLine, modelViewTransform, tandem );
}, [ electricPotentialLineGroup.archetype ], {
}, () => [ electricPotentialLineGroup.archetype ], {
tandem: tandem.createTandem( 'electricPotentialLineViewGroup' ),
phetioType: PhetioGroup.PhetioGroupIO( IOType.ObjectIO ),

Expand Down

0 comments on commit 1d53762

Please sign in to comment.