Skip to content

Commit

Permalink
removed Utils.sign, see phetsims/tasks#1037
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jul 10, 2020
1 parent cef4ace commit 0bb4095
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,22 +768,6 @@ var Utils = {
return centroid;
},

/**
* @deprecated - use Math.sign, see https://github.com/phetsims/tasks/issues/1037.
*
* Polyfill for Math.sign from MDN, see
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
* @public
*
* We cannot use Math.sign because it is not supported on IE
*
* @param {number} x
* @returns {number}
*/
sign: function( x ) {
return ( ( x > 0 ) - ( x < 0 ) ) || +x;
},

/**
* Function that returns the hyperbolic cosine of a number
* @public
Expand Down

0 comments on commit 0bb4095

Please sign in to comment.