Skip to content

Commit

Permalink
use new bad-text to keep joist global out of common code (unprotected),
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 10, 2023
1 parent 2328ed6 commit 6d663bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/ReadOnlyProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ export default class ReadOnlyProperty<T> extends PhetioObject implements TReadOn
// state is managed by the PhetioStateEngine.
// We still want to set Properties when clearing dynamic elements, see https://github.com/phetsims/phet-io/issues/1906
const setManagedByPhetioState = simGlobal &&
simGlobal.isSettingPhetioStateProperty &&
simGlobal.isSettingPhetioStateProperty.value &&
simGlobal.isClearingPhetioDynamicElementsProperty &&
!simGlobal.isClearingPhetioDynamicElementsProperty.value &&
this.isPhetioInstrumented() && this.phetioState &&

Expand Down

0 comments on commit 6d663bf

Please sign in to comment.