Skip to content

Commit

Permalink
cleanup listener order temp code, phetsims/build-a-nucleus#105
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 25, 2023
1 parent 4b447fb commit 342fc68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/model/ParticleAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,16 @@ class ParticleAtom extends PhetioObject {
this.protons = createObservableArray( {
// tandem: options.tandem.createTandem( 'protons' ),
phetioType: createObservableArray.ObservableArrayIO( Particle.ParticleIO ),
hasListenerOrderDependencies: true // TODO: Not positive that this is true, but CT will let us know, see https://github.com/phetsims/build-a-nucleus/issues/105
lengthPropertyOptions: {
hasListenerOrderDependencies: true // needed in BAN, see https://github.com/phetsims/build-a-nucleus/issues/105
}
} );
this.neutrons = createObservableArray( {
// tandem: options.tandem.createTandem( 'neutrons' ),
phetioType: createObservableArray.ObservableArrayIO( Particle.ParticleIO ),
hasListenerOrderDependencies: true // TODO: Not positive that this is true, but CT will let us know, see https://github.com/phetsims/build-a-nucleus/issues/105
lengthPropertyOptions: {
hasListenerOrderDependencies: true // needed in BAN, see https://github.com/phetsims/build-a-nucleus/issues/105
}
} );
this.electrons = createObservableArray( {
// tandem: options.tandem.createTandem( 'electrons' ),
Expand Down

0 comments on commit 342fc68

Please sign in to comment.