diff options
Diffstat (limited to 'js/Misc/RELATIONALOP.js')
-rw-r--r-- | js/Misc/RELATIONALOP.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Misc/RELATIONALOP.js b/js/Misc/RELATIONALOP.js index bd7da970..48de0bf5 100644 --- a/js/Misc/RELATIONALOP.js +++ b/js/Misc/RELATIONALOP.js @@ -32,8 +32,8 @@ function RELATIONALOP() { this.zcr = parseFloat(arguments[0]["zcr"]) this.Datatype = arguments[0]["Datatype"] this.x = arg1; - var graphics = arg1.graphics; - var exprs = graphics.exprs; + this.graphics = arg1.graphics; + var exprs = this.graphics.exprs; this.model = arg1.model; if (size(exprs,1)==2) { var exprs = [[exprs],[sci2exp(1)]]; @@ -74,9 +74,9 @@ function RELATIONALOP() { var ot = this.Datatype; var in1 = [[-1,-2],[-1,-2]]; var out = [-1,-2]; - var tmpvar0 = set_io(this.model,graphics,list(in1,it),list(out,ot),[],[]) - this.model = tmpvar0[0] - var graphics = tmpvar0[1] + var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]); + this.model = tmpvar0[0]; + this.graphics = tmpvar0[1]; var ok = tmpvar0[2]; } if (ok) { @@ -93,12 +93,12 @@ function RELATIONALOP() { } else if (this.rule==5) { var label = "≥"; } - graphics.exprs = exprs; - graphics.style = ["fontSize=13;fontStyle=1;displayedLabel="+label]; + this.graphics.exprs = new ScilabDouble(exprs); + this.graphics.style = new ScilabDouble(["fontSize=13;fontStyle=1;displayedLabel="+label]); this.model.ipar = new ScilabDouble([this.rule]); this.model.nzcross = new ScilabDouble([this.zcr]); this.model.nmode = new ScilabDouble([this.zcr]); - this.x.graphics = graphics; + this.x.graphics = this.graphics; this.x.model = this.model; break; } |