diff options
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; |