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/SWITCH_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/SWITCH_f.js')
-rw-r--r-- | js/Branching/SWITCH_f.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js index d139589b..c4e2b75a 100644 --- a/js/Branching/SWITCH_f.js +++ b/js/Branching/SWITCH_f.js @@ -5,11 +5,11 @@ function SWITCH_f() { in1 = [[-1],[-1]]; this.nin = 2; this.model = scicos_model(); - this.model.sim = list(new ScilabString("switchn"),new ScilabDouble(2)); + this.model.sim = list(new ScilabString(["switchn"]), new ScilabDouble([2])); this.model.in1 = in1; - this.model.out = new ScilabDouble(-1); - this.model.ipar = new ScilabDouble(i0); - this.model.blocktype = new ScilabString("c"); + this.model.out = new ScilabDouble([-1]); + this.model.ipar = new ScilabDouble([i0]); + this.model.blocktype = new ScilabString(["c"]); this.model.firing = []; this.model.dep_ut = [true,true]; exprs = [[string(this.nin)],[string(i0+1)]]; @@ -46,7 +46,7 @@ function SWITCH_f() { [model,graphics,ok] = check_io(this.model,graphics,-ones(this.nin,1),-1,[],[]); if (ok) { graphics.exprs = exprs; - this.model.ipar = new ScilabString(this.z0-1); + this.model.ipar = new ScilabString([this.z0-1]); this.x.graphics = graphics; this.x.model = this.model; break; |