From: Dan Vanderkam Date: Fri, 27 Sep 2013 13:32:27 +0000 (-0400) Subject: add comment explaining isFinite check X-Git-Tag: v1.1.0~83 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=40a54d297426592f720286f41ff0e5fa01d7a45b;p=dygraphs.git add comment explaining isFinite check --- diff --git a/dygraph-layout.js b/dygraph-layout.js index c1c2bc4..78d8b19 100644 --- a/dygraph-layout.js +++ b/dygraph-layout.js @@ -214,7 +214,7 @@ DygraphLayout.prototype._evaluateLimits = function() { DygraphLayout._calcYNormal = function(axis, value, logscale) { if (logscale) { var x = 1.0 - ((Dygraph.log10(value) - Dygraph.log10(axis.minyval)) * axis.ylogscale); - return isFinite(x) ? x : NaN; + return isFinite(x) ? x : NaN; // shim for v8 issue; see pull request 276 } else { return 1.0 - ((value - axis.minyval) * axis.yscale); }