From 82f9b10f56435d3c3e55827fe13f6f573eed8291 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Wed, 18 Jul 2012 10:10:52 -0500 Subject: [PATCH] only 4 tests failing --- dygraph-canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 887c6ff..69daae6 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -333,7 +333,7 @@ DygraphCanvasRenderer.prototype._drawSeries = function( // } iter.nextIdx_ = i; var peek = iter.next(); - nextCanvasY = peek ? peek.canvasy : null; + nextCanvasY = iter.hasNext ? iter.peek.canvasy : null; // nextCanvasY = next_i < iter.end_ ? iter.array_[next_i].canvasy : null; // TODO: we calculate isNullOrNaN for this point, and the next, and then, -- 2.7.4