Update dygraph.js
[dygraphs.git] / dygraph.js
index 9f9dc26..752c94d 100644 (file)
@@ -2822,14 +2822,14 @@ Dygraph.prototype.extractSeries_ = function(rawData, i, logScale) {
       // On the log scale, points less than zero do not exist.
       // This will create a gap in the chart.
       if (errorBars || customBars) {
+        // point.length is either 2 (errorBars) or 3 (customBars)
         for (var k = 0; k < point.length; k++) {
           if (point[k] <= 0) {
             point = null;
             break;
           }
         }
-      }
-      else if (point <= 0) {
+      } else if (point <= 0) {
         point = null;
       }
     }