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 cc85cd1 commit 8303e8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions js/common/model/CollisionCounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ define( require => {
const BooleanProperty = require( 'AXON/BooleanProperty' );
const gasProperties = require( 'GAS_PROPERTIES/gasProperties' );
const NumberProperty = require( 'AXON/NumberProperty' );
const Property = require( 'AXON/Property' );
const Vector2 = require( 'DOT/Vector2' );
const Vector2Property = require( 'DOT/Vector2Property' );

class CollisionCounter {

Expand All @@ -30,9 +30,7 @@ define( require => {
}, options );

// @public location of the collision counter, in view coordinates
this.locationProperty = new Property( options.location, {
valueType: Vector2
} );
this.locationProperty = new Vector2Property( options.location );

// @public the number of collisions between the particles and the container walls
this.numberOfCollisionsProperty = new NumberProperty( 0, {
Expand Down
6 changes: 2 additions & 4 deletions js/common/model/Stopwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ define( require => {
const BooleanProperty = require( 'AXON/BooleanProperty' );
const gasProperties = require( 'GAS_PROPERTIES/gasProperties' );
const NumberProperty = require( 'AXON/NumberProperty' );
const Property = require( 'AXON/Property' );
const Vector2 = require( 'DOT/Vector2' );
const Vector2Property = require( 'DOT/Vector2Property' );

class Stopwatch {

Expand All @@ -31,9 +31,7 @@ define( require => {
}, options );

// @public location of the stopwatch, in view coordinates
this.locationProperty = new Property( options.location, {
valueType: Vector2
} );
this.locationProperty = new Vector2Property( options.location );

// @public whether the stopwatch is visible
this.visibleProperty = new BooleanProperty( options.visible );
Expand Down

0 comments on commit 8303e8f

Please sign in to comment.