From 2b4757367470d8e36bc00901dac567e375796ed4 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Nov 2018 00:24:09 -0500 Subject: 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 --- assets/viz/2/goog/math/math.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets/viz/2/goog/math/math.js') 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); }; -- cgit v1.2.3