diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2018-11-13 00:24:09 -0500 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2018-11-13 00:24:09 -0500 |
commit | 2b4757367470d8e36bc00901dac567e375796ed4 (patch) | |
tree | 72368624006c21d28228a100ee88590c7bf95e58 /assets/viz/2/goog/math/math.js | |
parent | 5ed62d23b4bbbf7717de4adfa0eaf2af19365408 (diff) |
update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description
Diffstat (limited to 'assets/viz/2/goog/math/math.js')
-rw-r--r-- | assets/viz/2/goog/math/math.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/viz/2/goog/math/math.js b/assets/viz/2/goog/math/math.js index 95e5fb5..b8dbfb0 100644 --- a/assets/viz/2/goog/math/math.js +++ b/assets/viz/2/goog/math/math.js @@ -220,7 +220,7 @@ goog.math.angleDifference = function(startAngle, endAngle) { * @return {number} -1 when negative, 1 when positive, 0 when 0. Preserves * signed zeros and NaN. */ -goog.math.sign = Math.sign || function(x) { +goog.math.sign = function(x) { if (x > 0) { return 1; } @@ -379,9 +379,10 @@ goog.math.isInt = function(num) { * Returns whether the supplied number is finite and not NaN. * @param {number} num The number to test. * @return {boolean} Whether {@code num} is a finite number. + * @deprecated Use {@link isFinite} instead. */ goog.math.isFiniteNumber = function(num) { - return isFinite(num) && !isNaN(num); + return isFinite(num); }; |