summaryrefslogtreecommitdiff
path: root/js/Sources/GENSIN_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/Sources/GENSIN_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/Sources/GENSIN_f.js')
-rw-r--r--js/Sources/GENSIN_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/GENSIN_f.js b/js/Sources/GENSIN_f.js
index b141b1a7..6d3b1e7c 100644
--- a/js/Sources/GENSIN_f.js
+++ b/js/Sources/GENSIN_f.js
@@ -28,13 +28,13 @@ function GENSIN_f() {
return options;
}
GENSIN_f.prototype.set = function GENSIN_f() {
- this.M = arguments[0]["M"]
- this.F = arguments[0]["F"]
- this.P = arguments[0]["P"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.M,this.F,this.P,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","GENSIN_f")],[" "],["Sine wave generator"],[" "]],["Magnitude","Frequency (rad/s)","Phase (rad)"],list("vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.M = arguments[0]["M"];
+ this.F = arguments[0]["F"];
+ this.P = arguments[0]["P"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}