From 9adc2c3372cc8fc0137a5bef606fa93077e01c21 Mon Sep 17 00:00:00 2001 From: manufitoussi Date: Fri, 1 Feb 2013 11:17:38 +0100 Subject: [PATCH 1/1] Changing name of isUnspecifiedLimit function to isNullUndefinedOrNaN --- dygraph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.7.4