BUG FIX: Changed check to undefined with === as proposed by jslint.
authorDamien Buhl (alias daminetreg) <damien.buhl@lecbna.org>
Fri, 12 Apr 2013 08:10:16 +0000 (10:10 +0200)
committerDamien Buhl (alias daminetreg) <damien.buhl@lecbna.org>
Fri, 12 Apr 2013 08:10:16 +0000 (10:10 +0200)
dygraph.js

index bcf25e0..70f0dc0 100644 (file)
@@ -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