summaryrefslogtreecommitdiff
path: root/js/Sinks/CMATVIEW.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/Sinks/CMATVIEW.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Sinks/CMATVIEW.js')
-rw-r--r--js/Sinks/CMATVIEW.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sinks/CMATVIEW.js b/js/Sinks/CMATVIEW.js
index c4c1736f..0fc1f9a8 100644
--- a/js/Sinks/CMATVIEW.js
+++ b/js/Sinks/CMATVIEW.js
@@ -34,13 +34,13 @@ function CMATVIEW() {
return options;
}
CMATVIEW.prototype.set = function CMATVIEW() {
- 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.colormap,this.cmin,this.cmax,this.exprs] = scicos_getvalue("Set Scope parameters",["ColorMap","Minimum level range","Maximum level range"],list("vec",-1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ 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;
}