summaryrefslogtreecommitdiff
path: root/js/Sinks/CSCOPE.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks/CSCOPE.js')
-rw-r--r--js/Sinks/CSCOPE.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/js/Sinks/CSCOPE.js b/js/Sinks/CSCOPE.js
index 0fcf3788..712574e7 100644
--- a/js/Sinks/CSCOPE.js
+++ b/js/Sinks/CSCOPE.js
@@ -42,20 +42,20 @@ function CSCOPE() {
return options;
}
CSCOPE.prototype.set = function CSCOPE() {
- this.clrs = inverse(arguments[0]["clrs"])
- this.win = parseFloat(arguments[0]["win"])
- this.wpos = inverse(arguments[0]["wpos"])
- this.wdim = inverse(arguments[0]["wdim"])
- this.ymin = parseFloat(arguments[0]["ymin"])
- this.ymax = parseFloat(arguments[0]["ymax"])
- this.per = parseFloat(arguments[0]["per"])
- this.N = parseFloat(arguments[0]["N"])
- this.heritance = arguments[0]["heritance"]
- this.nom = arguments[0]["nom"]
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.clrs,this.win,this.wpos,this.wdim,this.ymin,this.ymax,this.per,this.N,this.heritance,this.nom,this.exprs] = scicos_getvalue("Set Scope parameters",["Color (>0) or mark (<0) vector (8 entries)","Output window number (-1 for automatic)","Output window position","Output window sizes","Ymin","Ymax","Refresh period","Buffer size","Accept herited events 0/1","Name of Scope (label&Id)"],list("vec",8,"vec",1,"vec",-1,"vec",-1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"str",1),this.exprs);
+ var ok = true;
+ this.clrs = inverse(arguments[0]["clrs"]);
+ this.win = parseFloat(arguments[0]["win"]);
+ this.wpos = inverse(arguments[0]["wpos"]);
+ this.wdim = inverse(arguments[0]["wdim"]);
+ this.ymin = parseFloat(arguments[0]["ymin"]);
+ this.ymax = parseFloat(arguments[0]["ymax"]);
+ this.per = parseFloat(arguments[0]["per"]);
+ this.N = parseFloat(arguments[0]["N"]);
+ this.heritance = arguments[0]["heritance"];
+ this.nom = arguments[0]["nom"];
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}