diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/Linear/CLR_f.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/Linear/CLR_f.js')
-rw-r--r-- | js/Linear/CLR_f.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Linear/CLR_f.js b/js/Linear/CLR_f.js index c6a4f351..c97910fd 100644 --- a/js/Linear/CLR_f.js +++ b/js/Linear/CLR_f.js @@ -30,9 +30,6 @@ function CLR_f() { return options; } CLR_f.prototype.set = function CLR_f() { - this.num = arguments[0]["num"] - this.den = arguments[0]["den"] - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; var x0 = this.model.state; var rpar = this.model.rpar; @@ -42,7 +39,10 @@ function CLR_f() { var PREVAR_scicos_context = PREVAR_scicos_context; PREVAR_scicos_context.s = %s; while (true) { - [ok,this.num,this.den,this.exprs] = scicos_getvalue("Set continuous SISO transfer parameters",["Numerator (s)","Denominator (s)"],list("pol",1,"pol",1),this.exprs); + var ok = true; + this.num = arguments[0]["num"]; + this.den = arguments[0]["den"]; + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |