diff options
Diffstat (limited to 'js/Sources/CONST.js')
-rw-r--r-- | js/Sources/CONST.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index f42bf2cf..82b1795b 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -9,8 +9,8 @@ function CONST() { this.model.rpar = new ScilabDouble([this.C]); this.model.blocktype = new ScilabString(["d"]); this.model.dep_ut = [false,false]; - exprs = strcat(sci2exp(this.C)); - gr_i = []; + var exprs = strcat(sci2exp(this.C)); + var gr_i = []; this.x = standard_define([2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } @@ -25,16 +25,16 @@ function CONST() { CONST.prototype.set = function CONST() { this.C = parseFloat(arguments[0]["C"]) this.x = arg1; - graphics = arg1.graphics; - exprs = graphics.exprs; + var graphics = arg1.graphics; + var exprs = graphics.exprs; this.model = arg1.model; while (true) { [ok,this.C,exprs] = scicos_getvalue(["Set Contant Block"],"Constant",list("vec",-1),exprs); if (!ok) { break; } - sz = size(this.C); - nout = size(this.C,"*"); + var sz = size(this.C); + var nout = size(this.C,"*"); if (nout==0) { message("C must have at least one element"); } else if (and(sz>1)) { |