summaryrefslogtreecommitdiff
path: root/js/Sinks/BARXY.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/BARXY.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/BARXY.js')
-rw-r--r--js/Sinks/BARXY.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sinks/BARXY.js b/js/Sinks/BARXY.js
index 6a8e9510..4f117320 100644
--- a/js/Sinks/BARXY.js
+++ b/js/Sinks/BARXY.js
@@ -35,15 +35,15 @@ function BARXY() {
return options;
}
BARXY.prototype.set = function BARXY() {
- 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.thickness = arguments[0]["thickness"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.xmin,this.xmax,this.ymin,this.ymax,this.thickness,this.exprs] = scicos_getvalue("Set Scope parameters",["Xmin","Xmax","Ymin","Ymax","Segs Thickness"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1),this.exprs);
+ var ok = true;
+ 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.thickness = arguments[0]["thickness"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}