From a6c109c1d07e7e00ad24cc6eeb1eca5e57df61f0 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 22 Oct 2010 10:50:57 -0400 Subject: [PATCH] fix logic error --- dygraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph.js b/dygraph.js index 6e9aac7..650d317 100644 --- a/dygraph.js +++ b/dygraph.js @@ -2820,7 +2820,7 @@ Dygraph.prototype.visibility = function() { */ Dygraph.prototype.setVisibility = function(num, value) { var x = this.visibility(); - if (num < 0 && num >= x.length) { + if (num < 0 || num >= x.length) { this.warn("invalid series number in setVisibility: " + num); } else { x[num] = value; -- 2.7.4