Skip to content

Commit

Permalink
formatting, #409
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 30, 2022
1 parent 0c05dc4 commit b5c62d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ReadOnlyProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ export default class ReadOnlyProperty<T> extends PhetioObject implements TReadOn
// state is managed by the PhetioStateEngine
const setManagedByPhetioState = _.hasIn( window, 'phet.joist.sim.isSettingPhetioStateProperty' ) &&
phet.joist.sim.isSettingPhetioStateProperty.value &&
this.isPhetioInstrumented() && this.phetioState
this.isPhetioInstrumented() && this.phetioState &&

// However, DerivedProperty should be able to update during PhET-iO state set
&& this.isSettable();
this.isSettable();

if ( !setManagedByPhetioState ) {
this.unguardedSet( value );
Expand Down

0 comments on commit b5c62d9

Please sign in to comment.