Skip to content

Commit

Permalink
move isSettingPhetioStateProperty to tandem/, phetsims/tandem#294
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 31, 2023
1 parent 2949f74 commit 66d2cc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/charges-and-fields/model/ChargesAndFieldsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 } );
}
}
Expand Down

0 comments on commit 66d2cc0

Please sign in to comment.