only 4 tests failing
authorDan Vanderkam <dan@dygraphs.com>
Wed, 18 Jul 2012 15:10:52 +0000 (10:10 -0500)
committerDan Vanderkam <dan@dygraphs.com>
Wed, 18 Jul 2012 15:10:52 +0000 (10:10 -0500)
dygraph-canvas.js

index 887c6ff..69daae6 100644 (file)
@@ -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,