From 20cdf60a45d4876c7fa1843c9ccdbcd44cd8338b Mon Sep 17 00:00:00 2001 From: samreid Date: Thu, 13 Dec 2018 20:48:18 -0700 Subject: [PATCH] Reset barrier type selection, see https://github.com/phetsims/wave-interference/issues/183 --- js/common/model/Scene.js | 1 + js/slits/view/BarriersNode.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/model/Scene.js b/js/common/model/Scene.js index bd62feae..d0af4537 100644 --- a/js/common/model/Scene.js +++ b/js/common/model/Scene.js @@ -575,6 +575,7 @@ define( require => { this.continuousWave1OscillatingProperty.reset(); this.continuousWave2OscillatingProperty.reset(); this.isAboutToFireProperty.reset(); + this.barrierTypeProperty && this.barrierTypeProperty.reset(); } /** diff --git a/js/slits/view/BarriersNode.js b/js/slits/view/BarriersNode.js index 6c4c3160..85e6dabc 100644 --- a/js/slits/view/BarriersNode.js +++ b/js/slits/view/BarriersNode.js @@ -107,7 +107,6 @@ define( require => { * @private - update the shapes and text when the rotationAmount has changed */ update() { - const barrierType = this.scene.barrierTypeProperty.get(); const scene = this.scene; const slitWidth = scene.slitWidthProperty.get();