diff options
Diffstat (limited to 'js/Branching/DEMUX.js')
-rw-r--r-- | js/Branching/DEMUX.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/DEMUX.js b/js/Branching/DEMUX.js index 6d1b4fc7..5b2875a2 100644 --- a/js/Branching/DEMUX.js +++ b/js/Branching/DEMUX.js @@ -10,9 +10,9 @@ function DEMUX() { this.model.blocktype = new ScilabString(["c"]); this.model.firing = new ScilabDouble([]); this.model.dep_ut = new ScilabBoolean([true,false]); - this.exprs = string(this.out); - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([.5,2]),this.model,new ScilabString([this.exprs]),this.gr_i); + var exprs = string(this.out); + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"DEMUX\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([.5,2]),this.model,new ScilabString([exprs]),gr_i); return new BasicBlock(this.x); } DEMUX.prototype.details = function DEMUX() { @@ -25,7 +25,7 @@ function DEMUX() { return options; } DEMUX.prototype.set = function DEMUX() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; while (true) { var ok = true; this.out = parseFloat(arguments[0]["out"]); @@ -64,7 +64,7 @@ function DEMUX() { } } if (ok) { - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.model.ipar = new ScilabDouble([this.out]); this.x.graphics = this.graphics; this.x.model = this.model; |