From 94ea5744c9541f9c91ee2d150d06024e430c967e Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Wed, 28 Dec 2011 18:35:32 -0500 Subject: [PATCH] isZoomed broken because of == -> === comparison. --- dygraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'."; }; /** -- 2.7.4