Skip to content

Commit

Permalink
Replace Utils.sign with Math.sign, see phetsims/tasks#1037
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonLi8 committed Jul 10, 2020
1 parent a42e6f3 commit 4113f80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/BarNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import NumberProperty from '../../axon/js/NumberProperty.js';
import Range from '../../dot/js/Range.js';
import Utils from '../../dot/js/Utils.js';
import inherit from '../../phet-core/js/inherit.js';
import merge from '../../phet-core/js/merge.js';
import ArrowNode from '../../scenery-phet/js/ArrowNode.js';
Expand Down Expand Up @@ -226,7 +225,7 @@ inherit( Node, BarNode, {
this.offScaleArrow.visible = false;
}

setBarYValues( this.borderRectangle, 0, currentY + this.borderWidth * Utils.sign( currentY ) );
setBarYValues( this.borderRectangle, 0, currentY + this.borderWidth * Math.sign( currentY ) );
this.borderRectangle.visible = currentY !== 0;
}
} );
Expand Down

0 comments on commit 4113f80

Please sign in to comment.