From 2b2177280cb239e72223f88fe29e9bc2fab88461 Mon Sep 17 00:00:00 2001 From: "Damien Buhl (alias daminetreg)" Date: Fri, 12 Apr 2013 10:10:16 +0200 Subject: [PATCH] BUG FIX: Changed check to undefined with === as proposed by jslint. --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index bcf25e0..70f0dc0 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2736,7 +2736,7 @@ Dygraph.prototype.computeYAxisRanges_ = function(extremes) { p_axis = axis; } } - if(p_axis == undefined) + if(p_axis === undefined) throw ("Configuration Error: At least one axis has to have the \"independentTicks\" option activated."); // Add ticks. By default, all axes inherit the tick positions of the // primary axis. However, if an axis is specifically marked as having -- 2.7.4