Skip to content

Commit

Permalink
Move PropertyIO to Property.js, see phetsims/tandem#212
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 29, 2020
1 parent 1f4f34a commit 9d0f67d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/singlebulb/model/SingleBulbModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import BooleanProperty from '../../../../axon/js/BooleanProperty.js';
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import NumberProperty from '../../../../axon/js/NumberProperty.js';
import Property from '../../../../axon/js/Property.js';
import PropertyIO from '../../../../axon/js/PropertyIO.js';
import Range from '../../../../dot/js/Range.js';
import EventTimer from '../../../../phet-core/js/EventTimer.js';
import inherit from '../../../../phet-core/js/inherit.js';
Expand Down Expand Up @@ -38,14 +37,14 @@ function SingleBulbModel( tandem ) {
this.lightTypeProperty = new Property( 'colored', {
validValues: [ 'white', 'colored' ],
tandem: tandem.createTandem( 'lightTypeProperty' ),
phetioType: PropertyIO( StringIO )
phetioType: Property.PropertyIO( StringIO )
} );

// @public {Property.<string>} indicates solid beam vs individual photons
this.beamTypeProperty = new Property( 'beam', {
validValues: [ 'beam', 'photon' ],
tandem: tandem.createTandem( 'beamTypeProperty' ),
phetioType: PropertyIO( StringIO )
phetioType: Property.PropertyIO( StringIO )
} );

// @public {Property.<number>} in units of nm, default wavelength is yellow
Expand Down

0 comments on commit 9d0f67d

Please sign in to comment.