Skip to content

Commit

Permalink
Rename instance => PhetioObject, see phetsims/phet-io#1422
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 2, 2019
1 parent 01c69ae commit 7595697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/game/model/BAAGameChallengeIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ define( function( require ) {
// TODO: is there a better way to do this, or at least factor it out?
var instance = phetioEngine.hasInstance( stateObject.phetioID );
if ( instance ) {
return phetioEngine.getInstance( stateObject.phetioID );
return phetioEngine.getPhetioObject( stateObject.phetioID );
}

var model = phetioEngine.getInstance( stateObject.modelPhetioID );
var model = phetioEngine.getPhetioObject( stateObject.modelPhetioID );

var answerAtom = new phet.shred.NumberAtom( {
protonCount: stateObject.answerAtom.protonCount,
Expand Down

0 comments on commit 7595697

Please sign in to comment.