Skip to content

Commit

Permalink
add hasListenerOrderDependencies for gas-properties case, phetsims/ax…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 20, 2023
1 parent 3d249b5 commit d3804f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/common/model/ParticleSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ export default class ParticleSystem {
numberType: 'Integer',
range: GasPropertiesConstants.HEAVY_PARTICLES_RANGE,
tandem: tandem.createTandem( 'numberOfHeavyParticlesProperty' ),
phetioDocumentation: 'the number of heavy particles in the container'
phetioDocumentation: 'the number of heavy particles in the container',
hasListenerOrderDependencies: true // TODO: https://github.com/phetsims/gas-properties/issues/206
} );

this.numberOfLightParticlesProperty = new NumberProperty( GasPropertiesConstants.LIGHT_PARTICLES_RANGE.defaultValue, {
numberType: 'Integer',
range: GasPropertiesConstants.LIGHT_PARTICLES_RANGE,
tandem: tandem.createTandem( 'numberOfLightParticlesProperty' ),
phetioDocumentation: 'the number of light particles in the container'
phetioDocumentation: 'the number of light particles in the container',
hasListenerOrderDependencies: true // TODO: https://github.com/phetsims/gas-properties/issues/206
} );

// Synchronize particle counts and arrays.
Expand Down

1 comment on commit d3804f1

@zepumph
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.