X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph.js;h=79bc7ca29ac009018f1222c174bded8e64ed0f1b;hb=1a5dc2af0b98d6937cd49d48a863f83f38f0ec1f;hp=74d6ce55330fc01f09853d0b64a0910a254f3457;hpb=758a629f806fa73483f730fb343013acd0ace078;p=dygraphs.git diff --git a/dygraph.js b/dygraph.js index 74d6ce5..79bc7ca 100644 --- a/dygraph.js +++ b/dygraph.js @@ -414,10 +414,10 @@ Dygraph.prototype.__init__ = function(div, file, attrs) { * option is also specified). */ Dygraph.prototype.isZoomed = function(axis) { - if (axis === null) return this.zoomed_x_ || this.zoomed_y_; + if (axis == null) return this.zoomed_x_ || this.zoomed_y_; if (axis === 'x') return this.zoomed_x_; if (axis === 'y') return this.zoomed_y_; - throw "axis parameter to Dygraph.isZoomed must be missing, 'x' or 'y'."; + throw "axis parameter is [" + axis + "] must be null, 'x' or 'y'."; }; /** @@ -2654,9 +2654,9 @@ Dygraph.prototype.parseCSV_ = function(data) { this.parseFloat_(vals[1], i, line), this.parseFloat_(vals[2], i, line) ]; } else { - this.warning('When using customBars, values must be either blank ' + - 'or "low;center;high" tuples (got "' + val + - '" on line ' + (1+i)); + this.warn('When using customBars, values must be either blank ' + + 'or "low;center;high" tuples (got "' + val + + '" on line ' + (1+i)); } } }