From: manufitoussi Date: Fri, 1 Feb 2013 10:17:38 +0000 (+0100) Subject: Changing name of isUnspecifiedLimit function to isNullUndefinedOrNaN X-Git-Tag: v1.0.0~105^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=9adc2c3372cc8fc0137a5bef606fa93077e01c21;p=dygraphs.git Changing name of isUnspecifiedLimit function to isNullUndefinedOrNaN --- diff --git a/dygraph.js b/dygraph.js index 4b291f1..63b2edb 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2497,7 +2497,7 @@ Dygraph.prototype.axisPropertiesForSeries = function(series) { */ Dygraph.prototype.computeYAxisRanges_ = function(extremes) { - var isUnspecifiedLimit = function(num) { + var isNullUndefinedOrNaN = function(num) { return isNaN(parseFloat(num)); }; var series; @@ -2573,8 +2573,8 @@ Dygraph.prototype.computeYAxisRanges_ = function(extremes) { } else if (axis.valueRange) { // This is a user-set value range for this axis. axis.computedValueRange = [ - isUnspecifiedLimit(axis.valueRange[0]) ? axis.extremeRange[0] : axis.valueRange[0], - isUnspecifiedLimit(axis.valueRange[1]) ? axis.extremeRange[1] : axis.valueRange[1] + isNullUndefinedOrNaN(axis.valueRange[0]) ? axis.extremeRange[0] : axis.valueRange[0], + isNullUndefinedOrNaN(axis.valueRange[1]) ? axis.extremeRange[1] : axis.valueRange[1] ]; } else { axis.computedValueRange = axis.extremeRange;