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/Sinks/CMAT3D.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/Sinks/CMAT3D.js')
-rw-r--r-- | js/Sinks/CMAT3D.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sinks/CMAT3D.js b/js/Sinks/CMAT3D.js index 0ae33284..0d510d02 100644 --- a/js/Sinks/CMAT3D.js +++ b/js/Sinks/CMAT3D.js @@ -38,15 +38,15 @@ function CMAT3D() { return options; } CMAT3D.prototype.set = function CMAT3D() { - this.vec_x = arguments[0]["vec_x"] - this.vec_y = arguments[0]["vec_y"] - this.colormap = parseFloat(arguments[0]["colormap"]) - this.cmin = parseFloat(arguments[0]["cmin"]) - this.cmax = parseFloat(arguments[0]["cmax"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; while (true) { - [ok,this.vec_x,this.vec_y,this.colormap,this.cmin,this.cmax,this.exprs] = scicos_getvalue("Set Scope parameters",["Bounds Vector X (-1 for standard)","Bounds Vector Y (-1 for standard)","ColorMap","Zmin","Zmax"],list("vec",-1,"vec",-1,"vec",-1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.vec_x = arguments[0]["vec_x"]; + this.vec_y = arguments[0]["vec_y"]; + this.colormap = parseFloat(arguments[0]["colormap"]); + this.cmin = parseFloat(arguments[0]["cmin"]); + this.cmax = parseFloat(arguments[0]["cmax"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |