summaryrefslogtreecommitdiff
path: root/js/Sinks/OUT_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Sinks/OUT_f.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Sinks/OUT_f.js')
-rw-r--r--js/Sinks/OUT_f.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Sinks/OUT_f.js b/js/Sinks/OUT_f.js
index 93a0c6d9..0089c599 100644
--- a/js/Sinks/OUT_f.js
+++ b/js/Sinks/OUT_f.js
@@ -25,14 +25,14 @@ function OUT_f() {
return options;
}
OUT_f.prototype.set = function OUT_f() {
- this.prt = parseFloat(arguments[0]["prt"])
- this.exprs = parseFloat(arguments[0]["exprs"])
this.exprs = this.graphics.exprs;
if (size(this.exprs,"*")==2) {
this.exprs = this.exprs[1-1];
}
while (true) {
- [ok,this.prt,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","OUT_f")],[" "],["Regular output port"]],"Port number",list("vec",1),this.exprs);
+ var ok = true;
+ this.prt = parseFloat(arguments[0]["prt"]);
+ this.exprs = parseFloat(arguments[0]["exprs"]);
if (!ok) {
break;
}