From 129569a500ce90f2b3d210791c53b09f53dda8de Mon Sep 17 00:00:00 2001 From: Frederic Didier Date: Wed, 29 Sep 2010 10:52:34 +0100 Subject: [PATCH] Fix a wrong warning() call. --- dygraph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index 4adb716..edc3eea 100644 --- a/dygraph.js +++ b/dygraph.js @@ -1037,7 +1037,7 @@ Dygraph.prototype.updateSelection_ = function() { if (this.attr_('showLabelsOnHighlight')) { // Set the status message to indicate the selected point(s) for (var i = 0; i < this.selPoints_.length; i++) { - if (!this.attr_("labelsShowZeroValues") && this.selPoints_[i].yval == 0) continue; + if (!this.attr_("labelsShowZeroValues") && this.selPoints_[i].yval == 0) continue; if (!isOK(this.selPoints_[i].canvasy)) continue; if (this.attr_("labelsSeparateLines")) { replace += "
"; @@ -2148,8 +2148,8 @@ Dygraph.prototype.parseDataTable_ = function(data) { var row = []; if (typeof(data.getValue(i, 0)) === 'undefined' || data.getValue(i, 0) === null) { - this.warning("Ignoring row " + i + - " of DataTable because of undefined or null first column."); + this.warn("Ignoring row " + i + + " of DataTable because of undefined or null first column."); continue; } -- 2.7.4