From: Evert Timberg Date: Sun, 24 Jan 2016 14:21:10 +0000 (-0500) Subject: Fix error in math helpers. X-Git-Tag: v2.0.0~60^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ed39c9fd702a0f281206137b01131080be8712b;p=thirdparty%2FChart.js.git Fix error in math helpers. --- diff --git a/src/core/core.helpers.js b/src/core/core.helpers.js index b25954777..65bdd1304 100644 --- a/src/core/core.helpers.js +++ b/src/core/core.helpers.js @@ -271,7 +271,7 @@ } else { return max; } - }, Number.MIN_VALUE); + }, Number.NEGATIVE_INFINITY); }; helpers.min = function(array) { return array.reduce(function(min, value) { @@ -280,7 +280,7 @@ } else { return min; } - }, Number.MAX_VALUE); + }, Number.POSITIVE_INFINITY); }; helpers.sign = function(x) { if (Math.sign) {