diff options
Diffstat (limited to 'js/Sources/CONST_f.js')
-rw-r--r-- | js/Sources/CONST_f.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index e5182263..ad63477d 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -3,11 +3,11 @@ function CONST_f() { CONST_f.prototype.define = function CONST_f() { this.C = 1; this.model = scicos_model(); - this.model.sim = list(new ScilabString("cstblk"),new ScilabDouble(1)); + this.model.sim = list(new ScilabString(["cstblk"]), new ScilabDouble([1])); this.model.in1 = []; - this.model.out = new ScilabDouble(1); - this.model.rpar = new ScilabDouble(this.C); - this.model.blocktype = new ScilabString("d"); + this.model.out = new ScilabDouble([1]); + this.model.rpar = new ScilabDouble([this.C]); + this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = [false,false]; exprs = strcat(sci2exp(this.C)); gr_i = []; @@ -38,7 +38,7 @@ function CONST_f() { message("C must have at least one element"); } else { this.model.rpar = this.C.slice(); - this.model.out = new ScilabDouble(nout); + this.model.out = new ScilabDouble([nout]); graphics.exprs = exprs; this.x.graphics = graphics; this.x.model = this.model; |