summaryrefslogtreecommitdiff
path: root/js/Linear/GAIN_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Linear/GAIN_f.js')
-rw-r--r--js/Linear/GAIN_f.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Linear/GAIN_f.js b/js/Linear/GAIN_f.js
index 026f9ccb..bdf478e3 100644
--- a/js/Linear/GAIN_f.js
+++ b/js/Linear/GAIN_f.js
@@ -26,11 +26,11 @@ function GAIN_f() {
return options;
}
GAIN_f.prototype.set = function GAIN_f() {
- this.gain = parseFloat(arguments[0]["gain"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.gain,this.exprs] = scicos_getvalue("Set gain block parameters",["Gain"],list("mat",[-1,-1]),this.exprs[1-1]);
+ var ok = true;
+ this.gain = parseFloat(arguments[0]["gain"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}