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 5f66962 commit 134a121
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions js/common/model/Circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ define( function( require ) {
var ObservableArray = require( 'AXON/ObservableArray' );
var ModifiedNodalAnalysisCircuit = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/common/model/ModifiedNodalAnalysisCircuit' );
var Property = require( 'AXON/Property' );
var BooleanProperty = require( 'AXON/BooleanProperty' );
var Emitter = require( 'AXON/Emitter' );
var Vertex = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/common/model/Vertex' );
var Wire = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/common/model/Wire' );
Expand All @@ -28,9 +29,6 @@ define( function( require ) {
var Vector2 = require( 'DOT/Vector2' );
var FixedLengthCircuitElement = require( 'CIRCUIT_CONSTRUCTION_KIT_COMMON/common/model/FixedLengthCircuitElement' );

// phet-io modules
var TBoolean = require( 'ifphetio!PHET_IO/types/TBoolean' );

// constants
var SNAP_RADIUS = 30; // For two vertices to join together, they must be this close, in view coordinates

Expand All @@ -55,9 +53,8 @@ define( function( require ) {
this.electrons = new ObservableArray();

// @public (read-only) - whether the electrons should be displayed
this.showElectronsProperty = new Property( false, {
tandem: tandem.createTandem( 'showElectronsProperty' ),
phetioValueType: TBoolean
this.showElectronsProperty = new BooleanProperty( false, {
tandem: tandem.createTandem( 'showElectronsProperty' )
} );

// @private - create the electrons in new circuits
Expand Down

0 comments on commit 134a121

Please sign in to comment.