Skip to content

Commit

Permalink
Update data measures in clear data, see #164
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 5, 2023
1 parent b3fd595 commit 3eeba0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions js/common/model/CAVSceneModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ export default class CAVSceneModel extends PhetioObject implements TModel {
this.getNextBallFromPool();

this.activeKickerIndexProperty.reset();

this.updateDataMeasures();
}

/**
Expand Down
8 changes: 0 additions & 8 deletions js/variability/model/VariabilitySceneModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ export default class VariabilitySceneModel extends CAVSceneModel {
this.initialized = true;
}

public override reset(): void {
super.reset();

// TODO: https://github.com/phetsims/center-and-variability/issues/164 Should this be called in the parent class? Or at least make sure not to forget it
// in any of the subclasses?
this.updateDataMeasures();
}

protected override updateDataMeasures(): void {
super.updateDataMeasures();

Expand Down

0 comments on commit 3eeba0a

Please sign in to comment.