diff options
author | Sunil Shetye | 2018-07-09 18:10:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | 9b18945e2e2348db85595fb096a1e1eba04f9baf (patch) | |
tree | bb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Misc/c_block.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Misc/c_block.js')
-rw-r--r-- | js/Misc/c_block.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js index 32685ce8..97c818c9 100644 --- a/js/Misc/c_block.js +++ b/js/Misc/c_block.js @@ -12,16 +12,16 @@ function c_block() { this.rpar = []; this.funam = "toto"; this.model = scicos_model(); - this.model.sim = list(new ScilabString(" "),new ScilabDouble(2001)); - this.model.in1 = new ScilabDouble(in1); - this.model.out = new ScilabDouble(out); + this.model.sim = list(new ScilabString([" "]), new ScilabDouble([2001])); + this.model.in1 = new ScilabDouble([in1]); + this.model.out = new ScilabDouble([out]); this.model.evtin = clkin; this.model.evtout = clkout; this.model.state = x0; this.model.dstate = z0; this.model.rpar = this.rpar; - this.model.ipar = new ScilabDouble(0); - this.model.blocktype = new ScilabString(typ); + this.model.ipar = new ScilabDouble([0]); + this.model.blocktype = new ScilabString([typ]); this.model.firing = auto; this.model.dep_ut = [true,false]; label = list([[sci2exp(in1)],[sci2exp(out)],[strcat(sci2exp(this.rpar))],[this.funam]],list([])); @@ -75,7 +75,7 @@ function c_block() { } [model,graphics,ok] = check_io(this.model,graphics,this.i,this.o,[],[]); if (ok) { - this.model.sim[1] = new ScilabString(this.funam); + this.model.sim[1] = new ScilabString([this.funam]); this.model.rpar = this.rpar; label[2-1] = tt; this.x.model = this.model; |