diff options
Diffstat (limited to 'js/Sources/IN_f.js')
-rw-r--r-- | js/Sources/IN_f.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index d1b6534d..6ff481fa 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -10,9 +10,9 @@ function IN_f() { this.model.ipar = new ScilabDouble([prt]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabDouble([false,false]); - var exprs = sci2exp(prt); - var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]); - this.x = standard_define([1,1],this.model,exprs,gr_i); + this.exprs = sci2exp(prt); + this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]); + this.x = standard_define([1,1],this.model,this.exprs,this.gr_i); return new ExplicitInBlock(this.x); } IN_f.prototype.details = function IN_f() { @@ -27,20 +27,20 @@ function IN_f() { this.x = arg1; this.graphics = arg1.graphics; this.model = arg1.model; - var exprs = this.graphics.exprs; - if (size(exprs,"*")==2) { - var exprs = exprs[1-1]; + this.exprs = this.graphics.exprs; + if (size(this.exprs,"*")==2) { + this.exprs = this.exprs[1-1]; } - if (size(exprs,"*")==1) { - var exprs = [[exprs[1-1]],["[-1 -2]"],["-1"]]; + if (size(this.exprs,"*")==1) { + this.exprs = [[this.exprs[1-1]],["[-1 -2]"],["-1"]]; } while (true) { - var tmpvar0 = getvalue(_("Set Input block parameters"),[[_("Port number")],[_("Outport size ([-1 -2] for inherit)")],[_("Outport Type (-1 for inherit)")]],list("vec",1,"vec",-1,"vec",1),exprs); + var tmpvar0 = getvalue(_("Set Input block parameters"),[[_("Port number")],[_("Outport size ([-1 -2] for inherit)")],[_("Outport Type (-1 for inherit)")]],list("vec",1,"vec",-1,"vec",1),this.exprs); var ok = tmpvar0[0]; var prt = tmpvar0[1]; var otsz = tmpvar0[2]; var ot = tmpvar0[3]; - var exprs = tmpvar0[4]; + this.exprs = tmpvar0[4]; if (!ok) { break; } @@ -61,7 +61,7 @@ function IN_f() { this.model.out = new ScilabDouble([otsz[1-1]]); this.model.out2 = new ScilabDouble([otsz[2-1]]); this.model.outtyp = new ScilabDouble([ot]); - this.graphics.exprs = new ScilabDouble(exprs); + this.graphics.exprs = new ScilabDouble(this.exprs); this.x.graphics = this.graphics; this.x.model = this.model; break; |