projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f12b7
)
fix logic error
author
Dan Vanderkam
<danvk@google.com>
Fri, 22 Oct 2010 14:50:57 +0000
(10:50 -0400)
committer
Dan Vanderkam
<danvk@google.com>
Fri, 22 Oct 2010 14:50:57 +0000
(10:50 -0400)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
6e9aac7
..
650d317
100644
(file)
--- 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;