From: Robert Konigsberg Date: Wed, 28 Dec 2011 23:35:32 +0000 (-0500) Subject: isZoomed broken because of == -> === comparison. X-Git-Tag: v1.0.0~383^2~7 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=94ea5744c9541f9c91ee2d150d06024e430c967e;p=dygraphs.git isZoomed broken because of == -> === comparison. --- diff --git a/dygraph.js b/dygraph.js index 74d6ce5..ff9fbfa 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'."; }; /**