diff options
Diffstat (limited to 'js/Sources/INIMPL_f.js')
-rw-r--r-- | js/Sources/INIMPL_f.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js index bfcbde45..75664e3c 100644 --- a/js/Sources/INIMPL_f.js +++ b/js/Sources/INIMPL_f.js @@ -13,9 +13,9 @@ function INIMPL_f() { mo.outputs = "n"; this.model.equations = new ScilabDouble([mo]); this.prt = 1; - var exprs = "1"; - var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INIMPL_f\",sz(1),sz(2));"]); - this.x = standard_define([1,1],this.model,exprs,gr_i); + this.exprs = "1"; + this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"INIMPL_f\",sz(1),sz(2));"]); + this.x = standard_define([1,1],this.model,this.exprs,this.gr_i); this.x.graphics.out_implicit = ["I"]; return new ImplicitInBlock(this.x); } @@ -29,15 +29,16 @@ function INIMPL_f() { } INIMPL_f.prototype.set = function INIMPL_f() { this.prt = parseFloat(arguments[0]["prt"]) + this.exprs = parseFloat(arguments[0]["exprs"]) this.x = arg1; this.graphics = arg1.graphics; - var exprs = this.graphics.exprs; + this.exprs = this.graphics.exprs; this.model = arg1.model; - if (size(exprs,"*")==2) { - var exprs = exprs[1-1]; + if (size(this.exprs,"*")==2) { + this.exprs = this.exprs[1-1]; } while (true) { - [ok,this.prt,exprs] = scicos_getvalue([[msprintf("Set %s block parameters","INIMPL_f")],[" "],["Implicit input port"],[" "]],"Port Number",list("vec",1),exprs); + [ok,this.prt,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","INIMPL_f")],[" "],["Implicit input port"],[" "]],"Port Number",list("vec",1),this.exprs); if (!ok) { break; } @@ -50,7 +51,7 @@ function INIMPL_f() { var y = needcompile; } this.model.ipar = new ScilabDouble([this.prt]); - this.graphics.exprs = new ScilabDouble([exprs]); + this.graphics.exprs = new ScilabDouble([this.exprs]); this.x.graphics = this.graphics; this.x.model = this.model; break; |