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