Skip to content

Commit

Permalink
convert namespace from phetIo to phetio, phetio.PhetioIDUtils should …
Browse files Browse the repository at this point in the history
…use global, phetsims/phet-io#1636
  • Loading branch information
zepumph committed Apr 2, 2020
1 parent 1c73b46 commit dc0b83a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/photon-absorption/model/PhotonIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class PhotonIO extends ObjectIO {
*/
static fromStateObject( stateObject ) {
let photon;
if ( phet.phetIo.phetioEngine.hasPhetioObject( stateObject.phetioID ) ) {
photon = phet.phetIo.phetioEngine.getPhetioObject( stateObject.phetioID );
if ( phet.phetio.phetioEngine.hasPhetioObject( stateObject.phetioID ) ) {
photon = phet.phetio.phetioEngine.getPhetioObject( stateObject.phetioID );
}
else {
photon = new phet.moleculesAndLight.Photon( NumberIO.fromStateObject( stateObject.wavelength ),
Expand Down

0 comments on commit dc0b83a

Please sign in to comment.