From b9532aafc7811492543a7fb8f1adade613827c90 Mon Sep 17 00:00:00 2001 From: Thomas Ritou Date: Tue, 1 Jan 2013 19:05:37 +1100 Subject: [PATCH] Remove useless check Flot is already doing it by itself --- curvedLines.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/curvedLines.js b/curvedLines.js index 3f325ca..517dcb5 100644 --- a/curvedLines.js +++ b/curvedLines.js @@ -113,15 +113,8 @@ if (series.curvedLines.apply == true) { if (series.lines.fill) { - var pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1); - - //Make sure we've got a second y point for filling area - for (var j = 0; j < datapoints.length; j += 3) { - if (data[j] == null) - data[j] = series.yaxis.min; - //If second y point is null, let it be zero (else no curve !) - } - var pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2); + var pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1) + ,pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2); //flot makes sur for us that we've got a second y point if fill is true ! //Merge top and bottom curve datapoints.pointsize = 3;