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.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Sinks/CSCOPE.js b/js/Sinks/CSCOPE.js
index 9e636ba6..3c69cbed 100644
--- a/js/Sinks/CSCOPE.js
+++ b/js/Sinks/CSCOPE.js
@@ -10,13 +10,13 @@ function CSCOPE() {
this.ymax = 15;
this.per = 30;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("cscope"),new ScilabDouble(4));
- this.model.in1 = new ScilabDouble(-1);
- this.model.in2 = new ScilabDouble(1);
- this.model.evtin = new ScilabDouble(1);
+ this.model.sim = list(new ScilabString(["cscope"]), new ScilabDouble([4]));
+ this.model.in1 = new ScilabDouble([-1]);
+ this.model.in2 = new ScilabDouble([1]);
+ this.model.evtin = new ScilabDouble([1]);
this.model.rpar = [[0],[this.ymin],[this.ymax],[this.per]];
this.model.ipar = [[this.win],[1],[this.N],[this.clrs],[this.wpos],[this.wdim]];
- this.model.blocktype = new ScilabString("c");
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [[strcat(string(this.clrs)," ")],[string(this.win)],[sci2exp([])],[sci2exp(this.wdim)],[string(this.ymin)],[string(this.ymax)],[string(this.per)],[string(this.N)],[transpose(string(0))],[emptystr()]];
gr_i = [];
@@ -107,8 +107,8 @@ function CSCOPE() {
ipar = [[this.win],[1],[this.N],[this.clrs.slice()],[this.wpos.slice()],[this.wdim.slice()]];
this.model.rpar = rpar;
this.model.ipar = ipar;
- this.model.evtin = new ScilabDouble(ones(1-this.heritance,1));
- this.model.label = new ScilabDouble(this.nom);
+ this.model.evtin = new ScilabDouble([ones(1-this.heritance,1)]);
+ this.model.label = new ScilabDouble([this.nom]);
graphics.id = this.nom;
graphics.exprs = exprs;
this.x.graphics = graphics;