From: Dan Vanderkam Date: Wed, 18 Jul 2012 15:10:52 +0000 (-0500) Subject: only 4 tests failing X-Git-Tag: v1.0.0~226 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=82f9b10f56435d3c3e55827fe13f6f573eed8291;p=dygraphs.git only 4 tests failing --- 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,