From: Dan Vanderkam Date: Fri, 22 Oct 2010 14:50:57 +0000 (-0400) Subject: fix logic error X-Git-Tag: v1.0.0~621 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=a6c109c1d07e7e00ad24cc6eeb1eca5e57df61f0;p=dygraphs.git fix logic error --- 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;