Skip to content

Commit

Permalink
Use GroupItemOptions for ToggleNode, see phetsims/sun#798
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Oct 11, 2022
1 parent 21008b5 commit 9c6e1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/view/IdealGasLawScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ class IdealGasLawScreenView extends BaseScreenView {

// Toggle button for switching between heavy and light bicycle pumps
const bicyclePumpsToggleNode = new ToggleNode( particleTypeProperty, [
{ value: ParticleType.HEAVY, node: heavyBicyclePumpNode },
{ value: ParticleType.LIGHT, node: lightBicyclePumpNode }
{ value: ParticleType.HEAVY, createNode: tandem => heavyBicyclePumpNode },
{ value: ParticleType.LIGHT, createNode: tandem => lightBicyclePumpNode }
] );

// Cancel interaction with the pump when particle type changes.
Expand Down

0 comments on commit 9c6e1c9

Please sign in to comment.