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/Misc/BPLATFORM.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/Misc/BPLATFORM.js')
-rw-r--r-- | js/Misc/BPLATFORM.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Misc/BPLATFORM.js b/js/Misc/BPLATFORM.js index 49243956..c614d905 100644 --- a/js/Misc/BPLATFORM.js +++ b/js/Misc/BPLATFORM.js @@ -37,18 +37,18 @@ function BPLATFORM() { return options; } BPLATFORM.prototype.set = function BPLATFORM() { - this.plen = parseFloat(arguments[0]["plen"]) - this.csiz = parseFloat(arguments[0]["csiz"]) - this.phi = parseFloat(arguments[0]["phi"]) - this.xmin = parseFloat(arguments[0]["xmin"]) - this.xmax = parseFloat(arguments[0]["xmax"]) - this.ymin = parseFloat(arguments[0]["ymin"]) - this.ymax = parseFloat(arguments[0]["ymax"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; var dstate = this.model.dstate; while (true) { - [ok,this.plen,this.csiz,this.phi,this.xmin,this.xmax,this.ymin,this.ymax,this.exprs] = scicos_getvalue("Set Scope parameters",["pendulum length","cart size (square side)","slope","Xmin","Xmax","Ymin","Ymax"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.plen = parseFloat(arguments[0]["plen"]); + this.csiz = parseFloat(arguments[0]["csiz"]); + this.phi = parseFloat(arguments[0]["phi"]); + this.xmin = parseFloat(arguments[0]["xmin"]); + this.xmax = parseFloat(arguments[0]["xmax"]); + this.ymin = parseFloat(arguments[0]["ymin"]); + this.ymax = parseFloat(arguments[0]["ymax"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |