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/BOUNCEXY.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/BOUNCEXY.js')
-rw-r--r-- | js/Misc/BOUNCEXY.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Misc/BOUNCEXY.js b/js/Misc/BOUNCEXY.js index 0eed5d47..9c4ba130 100644 --- a/js/Misc/BOUNCEXY.js +++ b/js/Misc/BOUNCEXY.js @@ -52,19 +52,19 @@ function BOUNCEXY() { return options; } BOUNCEXY.prototype.set = function BOUNCEXY() { - this.clrs = inverse(arguments[0]["clrs"]) - this.siz = inverse(arguments[0]["siz"]) - this.win = parseFloat(arguments[0]["win"]) - this.imode = parseFloat(arguments[0]["imode"]) - 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.clrs,this.siz,this.win,this.imode,this.xmin,this.xmax,this.ymin,this.ymax,this.exprs] = scicos_getvalue("Set Scope parameters",["colors","radii","window number (-1 for automatic)","animation mode (0,1)","Xmin","Xmax","Ymin","Ymax"],list("vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.clrs = inverse(arguments[0]["clrs"]); + this.siz = inverse(arguments[0]["siz"]); + this.win = parseFloat(arguments[0]["win"]); + this.imode = parseFloat(arguments[0]["imode"]); + 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; } |