summaryrefslogtreecommitdiff
path: root/js/Linear/GAINBLK.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/GAINBLK.js')
-rw-r--r--js/Linear/GAINBLK.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js
index a70acaf0..4397bb55 100644
--- a/js/Linear/GAINBLK.js
+++ b/js/Linear/GAINBLK.js
@@ -42,7 +42,7 @@ function GAINBLK() {
if (!ok) {
break;
}
- if (this.gain==[]) {
+ if (this.gain.length==0) {
message("Gain must have at least one element");
throw "user error";
} else {