Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jul 9, 2020
2 parents 548a08c + 20e3d0b commit b8f61d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/PhetioDynamicElementContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class PhetioDynamicElementContainer extends PhetioObject {
phetioStateEngine.onBeforeStateSetEmitter.addListener( phetioIDsToSet => {
for ( let i = 0; i < phetioIDsToSet.length; i++ ) {
const phetioID = phetioIDsToSet[ i ];
if ( _.startsWith( phetioID, this.tandem.phetioID ) ) {
if ( phetioID.startsWith( this.tandem.phetioID ) ) {

// specify that this is from state setting
this.clear( { fromStateSetting: true } );
Expand Down

0 comments on commit b8f61d4

Please sign in to comment.