From 3eeba0a1fe73f8ec194ff3228d3e967121437436 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Fri, 5 May 2023 16:28:24 -0600 Subject: [PATCH] Update data measures in clear data, see https://github.com/phetsims/center-and-variability/issues/164 --- js/common/model/CAVSceneModel.ts | 2 ++ js/variability/model/VariabilitySceneModel.ts | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/js/common/model/CAVSceneModel.ts b/js/common/model/CAVSceneModel.ts index 1d9b5d4a..31375039 100644 --- a/js/common/model/CAVSceneModel.ts +++ b/js/common/model/CAVSceneModel.ts @@ -313,6 +313,8 @@ export default class CAVSceneModel extends PhetioObject implements TModel { this.getNextBallFromPool(); this.activeKickerIndexProperty.reset(); + + this.updateDataMeasures(); } /** diff --git a/js/variability/model/VariabilitySceneModel.ts b/js/variability/model/VariabilitySceneModel.ts index f8d6be7f..54ccf90a 100644 --- a/js/variability/model/VariabilitySceneModel.ts +++ b/js/variability/model/VariabilitySceneModel.ts @@ -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();