From: Dan Vanderkam Date: Fri, 20 Jul 2012 19:36:53 +0000 (-0400) Subject: fix test X-Git-Tag: v1.0.0~214 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=5d0ed51c7c3e3325249a88376ac26d192dfabd01;p=dygraphs.git fix test --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 676f1bc..e284f93 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -475,15 +475,13 @@ DygraphCanvasRenderer.prototype.drawErrorBars_ = function(points) { var newYs; - for (var i = 0; i < setCount; i++) { - var setName = setNames[i]; + for (var setIdx = 0; setIdx < setCount; setIdx++) { + var setName = setNames[setIdx]; var axis = this.dygraph_.axisPropertiesForSeries(setName); var color = this.colors[setName]; - var firstIndexInSet = this.layout.setPointsOffsets[i]; - var setLength = this.layout.setPointsLengths[i]; - - var iter = Dygraph.createIterator(points, firstIndexInSet, setLength, + var points = this.layout.points[setIdx]; + var iter = Dygraph.createIterator(points, 0, points.length, DygraphCanvasRenderer._getIteratorPredicate( this.attr_("connectSeparatedPoints")));