Skip to content

Commit

Permalink
Made Vector2 constructor arguments required, see phetsims/dot#85
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 16, 2019
1 parent 9835b3a commit 48e6003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/common/model/ExpressionManipulationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ define( function( require ) {
* @private
*/
getNextOpenRetrievalSpot: function() {
var location = new Vector2();
var location = new Vector2( 0, 0 );
var row = 0;
var column = 0;
var openLocationFound = false;
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/ExpressionOverlayNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ define( function( require ) {
} );

// pre-allocated vectors, used for calculating allowable locations for the expression
var unboundedUpperLeftCornerPosition = new Vector2();
var boundedUpperLeftCornerPosition = new Vector2();
var unboundedUpperLeftCornerPosition = new Vector2( 0, 0 );
var boundedUpperLeftCornerPosition = new Vector2( 0, 0 );

// add the handler that will allow the expression to be dragged and will hide and show the buttons
var dragHandler = new SimpleDragHandler( {
Expand Down

0 comments on commit 48e6003

Please sign in to comment.