diff --git a/js/common/view/GreenhouseEffectScreenView.ts b/js/common/view/GreenhouseEffectScreenView.ts index 577a1513..3045d24c 100644 --- a/js/common/view/GreenhouseEffectScreenView.ts +++ b/js/common/view/GreenhouseEffectScreenView.ts @@ -145,7 +145,10 @@ class GreenhouseEffectScreenView extends ScreenView { * Resets view components. */ protected reset(): void { + + // The order here is important - the model must be reset before the observation window. this.model.reset(); + this.observationWindow.reset(); } } diff --git a/js/waves/view/WavesScreenView.ts b/js/waves/view/WavesScreenView.ts index 9ddd70ce..52011fde 100644 --- a/js/waves/view/WavesScreenView.ts +++ b/js/waves/view/WavesScreenView.ts @@ -313,7 +313,6 @@ class WavesScreenView extends GreenhouseEffectScreenView { public override reset(): void { super.reset(); - this.observationWindow.reset(); } }