fix broken test
authorDan Vanderkam <dan@dygraphs.com>
Thu, 12 May 2011 04:18:30 +0000 (00:18 -0400)
committerDan Vanderkam <dan@dygraphs.com>
Thu, 12 May 2011 04:18:30 +0000 (00:18 -0400)
dygraph-canvas.js

index 3f24b80..764bac1 100644 (file)
@@ -1039,7 +1039,7 @@ DygraphCanvasRenderer.prototype._renderLineChart = function() {
           var isIsolated = (!prevX && (j == points.length - 1 ||
                                        !Dygraph.isOK(points[j+1].canvasy)));
 
-          if (!prevX) {
+          if (prevX === null) {
             prevX = point.canvasx;
             prevY = point.canvasy;
           } else {