Skip to content

Commit

Permalink
handle review comments, #165
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 28, 2023
1 parent 6354bb2 commit a180546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/common/model/BANModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class BANModel<T extends ParticleAtom> {

this.particles.addItemAddedListener( particle => {

// REVIEW: Should there be an unlink for when the particles are removed? If unnecessary, document why.
// No need to remove because when a particle is removed from this.particles, it is disposed
particle.userControlledProperty.link( isUserControlled => userControlledListener( isUserControlled, particle ) );
} );

Expand Down
3 changes: 2 additions & 1 deletion js/decay/model/DecayModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class DecayModel extends BANModel<ParticleAtom> {
// the half-life number
public halfLifeNumberProperty: TReadOnlyProperty<number>;

// REVIEW: Some docs about this field would be helpful.
// A data structure for all the enabledProperties for the "decay buttons". These enabledProperties toggle to enabled
// when the Nuclide supports that given decay type.
public decayEnabledPropertyMap: Map<DecayType, TReadOnlyProperty<boolean>>;

public constructor() {
Expand Down

0 comments on commit a180546

Please sign in to comment.