Skip to content

Commit

Permalink
Moved phetioValueType to BooleanProperty, see phetsims/axon#116
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 21, 2017
1 parent d3012df commit ba52197
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 20 deletions.
18 changes: 6 additions & 12 deletions js/common/model/CLBModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,27 @@ define( function( require ) {
this.modelViewTransform = modelViewTransform; // @public (read-only)

this.plateChargesVisibleProperty = new BooleanProperty( true, {
tandem: tandem.createTandem( 'plateChargesVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'plateChargesVisibleProperty' )
} );

this.eFieldVisibleProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'eFieldVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'eFieldVisibleProperty' )
} );

this.capacitanceMeterVisibleProperty = new BooleanProperty( true, {
tandem: tandem.createTandem( 'capacitanceMeterVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'capacitanceMeterVisibleProperty' )
} );

this.barGraphsVisibleProperty = new BooleanProperty( true, {
tandem: tandem.createTandem( 'barGraphsVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'barGraphsVisibleProperty' )
} );

this.voltmeterVisibleProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'voltmeterVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'voltmeterVisibleProperty' )
} );

this.currentVisibleProperty = new BooleanProperty( true, {
tandem: tandem.createTandem( 'currentVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'currentVisibleProperty' )
} );

this.worldBounds = CANVAS_RENDERING_SIZE.toBounds(); // @private
Expand Down
6 changes: 2 additions & 4 deletions js/common/model/meter/Voltmeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ define( function( require ) {

// @public
this.visibleProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'visibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'visibleProperty' )
} );

// @public
this.inUserControlProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'inUserControlProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'inUserControlProperty' )
} );

// @public
Expand Down
6 changes: 2 additions & 4 deletions js/light-bulb/model/CLBLightBulbModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ define( function( require ) {
CLBModel.call( this, switchUsedProperty, modelViewTransform, tandem );

this.plateChargeMeterVisibleProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'plateChargeMeterVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'plateChargeMeterVisibleProperty' )
} );

this.storedEnergyMeterVisibleProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'storedEnergyMeterVisibleProperty' ),
phetioValueType: TBoolean
tandem: tandem.createTandem( 'storedEnergyMeterVisibleProperty' )
} );

var circuit = this.circuit;
Expand Down

0 comments on commit ba52197

Please sign in to comment.