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/Branching/ISELECT_f.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Branching/ISELECT_f.js')
-rw-r--r-- | js/Branching/ISELECT_f.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Branching/ISELECT_f.js b/js/Branching/ISELECT_f.js index df715ba5..adaf51f0 100644 --- a/js/Branching/ISELECT_f.js +++ b/js/Branching/ISELECT_f.js @@ -5,12 +5,12 @@ function ISELECT_f() { out = [[-1],[-1]]; this.nout = 2; this.model = scicos_model(); - this.model.sim = list(new ScilabString("selector"),new ScilabDouble(2)); - this.model.in1 = new ScilabDouble(-1); + this.model.sim = list(new ScilabString(["selector"]), new ScilabDouble([2])); + this.model.in1 = new ScilabDouble([-1]); this.model.out = out; - this.model.evtin = new ScilabDouble(ones(out)); - this.model.dstate = new ScilabDouble(this.z0); - this.model.blocktype = new ScilabString("c"); + this.model.evtin = new ScilabDouble([ones(out)]); + this.model.dstate = new ScilabDouble([this.z0]); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [true,false]; exprs = [[string(this.nout)],[string(this.z0+1)]]; gr_i = []; @@ -45,7 +45,7 @@ function ISELECT_f() { [model,graphics,ok] = check_io(this.model,graphics,-1,-ones(this.nout,1),ones(this.nout,1),[]); if (ok) { graphics.exprs = exprs; - this.model.dstate = new ScilabDouble(this.z0-1); + this.model.dstate = new ScilabDouble([this.z0-1]); this.x.graphics = graphics; this.x.model = this.model; break; |