diff options
Diffstat (limited to 'js/Sources/CONST.js')
-rw-r--r-- | js/Sources/CONST.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index 69c4d6e7..c953464e 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -9,9 +9,9 @@ function CONST() { this.model.rpar = new ScilabDouble([this.C]); this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = new ScilabBoolean([false,false]); - this.exprs = strcat(sci2exp(this.C)); - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble([this.exprs]),this.gr_i); + var exprs = strcat(sci2exp(this.C)); + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONST\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble([exprs]),gr_i); return new BasicBlock(this.x); } CONST.prototype.details = function CONST() { @@ -24,7 +24,7 @@ function CONST() { return options; } CONST.prototype.set = function CONST() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; while (true) { var ok = true; this.C = parseFloat(arguments[0]["C"]); @@ -42,7 +42,7 @@ function CONST() { } else { this.model.rpar = new ScilabDouble(this.C.slice()); this.model.out = new ScilabDouble([nout]); - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.x.graphics = this.graphics; this.x.model = this.model; break; |