From: Frederic Didier Date: Wed, 29 Sep 2010 09:52:34 +0000 (+0100) Subject: Fix a wrong warning() call. X-Git-Tag: v1.0.0~644^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=129569a500ce90f2b3d210791c53b09f53dda8de;p=dygraphs.git Fix a wrong warning() call. --- 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; }