Skip to content

Commit

Permalink
Use Vector2Property, see phetsims/dot#88
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 6, 2019
1 parent 5f2d047 commit 4a3bba3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions js/gravity-force-lab/model/GravityForceLabModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,18 @@ define( function( require ) {
var ISLCConstants = require( 'INVERSE_SQUARE_LAW_COMMON/ISLCConstants' );
var ISLCModel = require( 'INVERSE_SQUARE_LAW_COMMON/model/ISLCModel' );
var Mass = require( 'GRAVITY_FORCE_LAB/gravity-force-lab/model/Mass' );
var Property = require( 'AXON/Property' );
var PropertyIO = require( 'AXON/PropertyIO' );
var Range = require( 'DOT/Range' );
var Vector2 = require( 'DOT/Vector2' );
var Vector2IO = require( 'DOT/Vector2IO' );
var Vector2Property = require( 'DOT/Vector2Property' );

/**
* @param {Tandem} tandem
* @constructor
*/
function GravityForceLabModel( tandem ) {

this.rulerPositionProperty = new Property( new Vector2( 0, -0.90 ), {
tandem: tandem.createTandem( 'rulerPositionProperty' ),
phetioType: PropertyIO( Vector2IO )
this.rulerPositionProperty = new Vector2Property( new Vector2( 0, -0.90 ), {
tandem: tandem.createTandem( 'rulerPositionProperty' )
} ); // @public

this.constantRadiusProperty = new BooleanProperty( false, {
Expand Down

0 comments on commit 4a3bba3

Please sign in to comment.