summaryrefslogtreecommitdiff
path: root/js/Linear/DOLLAR.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/Linear/DOLLAR.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Linear/DOLLAR.js')
-rw-r--r--js/Linear/DOLLAR.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Linear/DOLLAR.js b/js/Linear/DOLLAR.js
index 6541259b..e8a5e691 100644
--- a/js/Linear/DOLLAR.js
+++ b/js/Linear/DOLLAR.js
@@ -28,15 +28,15 @@ function DOLLAR() {
return options;
}
DOLLAR.prototype.set = function DOLLAR() {
- this.a = arguments[0]["a"]
- this.inh = parseFloat(arguments[0]["inh"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
if (size(this.exprs,"*")<2) {
this.exprs[2-1] = "0";
}
while (true) {
- [ok,this.a,this.inh,this.exprs] = scicos_getvalue("Set 1/z block parameters",["initial condition","Inherit (no:0, yes:1)"],list("mat",[-1,-2],"vec",-1),this.exprs);
+ var ok = true;
+ this.a = arguments[0]["a"];
+ this.inh = parseFloat(arguments[0]["inh"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}