From 66d2cc0665078a0d0bc9adec46ae2f4297e8d8bc Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Wed, 31 May 2023 16:48:55 -0600 Subject: [PATCH] move isSettingPhetioStateProperty to tandem/, https://github.com/phetsims/tandem/issues/294 Signed-off-by: Michael Kauzmann --- js/charges-and-fields/model/ChargesAndFieldsModel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/charges-and-fields/model/ChargesAndFieldsModel.js b/js/charges-and-fields/model/ChargesAndFieldsModel.js index d77e9ad..8172277 100644 --- a/js/charges-and-fields/model/ChargesAndFieldsModel.js +++ b/js/charges-and-fields/model/ChargesAndFieldsModel.js @@ -13,6 +13,7 @@ import Property from '../../../../axon/js/Property.js'; import Bounds2 from '../../../../dot/js/Bounds2.js'; import dotRandom from '../../../../dot/js/dotRandom.js'; import Vector2 from '../../../../dot/js/Vector2.js'; +import isSettingPhetioStateProperty from '../../../../tandem/js/isSettingPhetioStateProperty.js'; import PhetioGroup from '../../../../tandem/js/PhetioGroup.js'; import PhetioObject from '../../../../tandem/js/PhetioObject.js'; import Tandem from '../../../../tandem/js/Tandem.js'; @@ -636,7 +637,7 @@ class ChargesAndFieldsModel extends PhetioObject { clearElectricPotentialLines() { // Clear lines without disrupting phet-io state - if ( !phet.joist.sim.isSettingPhetioStateProperty.value ) { + if ( !isSettingPhetioStateProperty.value ) { this.electricPotentialLineGroup.clear( { resetIndex: false } ); } }