From: Damien Buhl (alias daminetreg) Date: Fri, 12 Apr 2013 08:10:16 +0000 (+0200) Subject: BUG FIX: Changed check to undefined with === as proposed by jslint. X-Git-Tag: v1.0.0~29^2^2~5^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2b2177280cb239e72223f88fe29e9bc2fab88461;p=dygraphs.git BUG FIX: Changed check to undefined with === as proposed by jslint. --- 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