diff options
Diffstat (limited to 'js/IntegerOp/BITSET.js')
-rw-r--r-- | js/IntegerOp/BITSET.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js index 1c081016..dac0cb40 100644 --- a/js/IntegerOp/BITSET.js +++ b/js/IntegerOp/BITSET.js @@ -12,9 +12,9 @@ function BITSET() { this.model.opar = list(new ScilabDouble([uint32(0)])); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabBoolean([true,false]); - this.exprs = [[sci2exp(3)],[sci2exp(0)]]; - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(this.exprs),this.gr_i); + var exprs = [[sci2exp(3)],[sci2exp(0)]]; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"BITSET\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(exprs),gr_i); return new BasicBlock(this.x); } BITSET.prototype.details = function BITSET() { @@ -28,7 +28,7 @@ function BITSET() { return options; } BITSET.prototype.set = function BITSET() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; while (true) { var ok = true; this.Datatype = arguments[0]["Datatype"]; @@ -82,7 +82,7 @@ function BITSET() { var ok = tmpvar0[2]; } if (ok) { - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.model.opar = list(new ScilabDouble([n])); this.x.graphics = this.graphics; this.x.model = this.model; |