From 1f9c894e77ca19451042cc15dd5c84520cad9a17 Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Wed, 2 Aug 2023 14:14:45 -0600 Subject: [PATCH] assertion bug fix to ensure all liveAnimations are cleared, https://github.com/phetsims/build-a-nucleus/issues/85 --- js/chart-intro/model/ChartIntroModel.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/chart-intro/model/ChartIntroModel.ts b/js/chart-intro/model/ChartIntroModel.ts index 4837837..31c4cde 100644 --- a/js/chart-intro/model/ChartIntroModel.ts +++ b/js/chart-intro/model/ChartIntroModel.ts @@ -107,6 +107,9 @@ class ChartIntroModel extends BANModel { } } ); super.reset(); + + // Put this last to make sure that this.particleAtom can be cleared first (by supertype). + this.miniParticleAtom.clear(); } /**