summaryrefslogtreecommitdiff
path: root/js/Misc/RELATIONALOP.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/RELATIONALOP.js')
-rw-r--r--js/Misc/RELATIONALOP.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Misc/RELATIONALOP.js b/js/Misc/RELATIONALOP.js
index 8d83d58b..4febec77 100644
--- a/js/Misc/RELATIONALOP.js
+++ b/js/Misc/RELATIONALOP.js
@@ -10,9 +10,9 @@ function RELATIONALOP() {
this.model.ipar = new ScilabDouble(ipar);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
- this.exprs = [[string(ipar)],[string(0)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELATIONALOP\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[string(ipar)],[string(0)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RELATIONALOP\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),gr_i);
this.x.graphics.style = ["fontSize=13;fontStyle=1;displayedLabel="+label];
return new BasicBlock(this.x);
}
@@ -28,9 +28,9 @@ function RELATIONALOP() {
return options;
}
RELATIONALOP.prototype.set = function RELATIONALOP() {
- this.exprs = this.graphics.exprs;
- if (size(this.exprs,1)==2) {
- this.exprs = [[this.exprs],[sci2exp(1)]];
+ var exprs = this.graphics.exprs;
+ if (size(exprs,1)==2) {
+ var exprs = [[exprs],[sci2exp(1)]];
}
while (true) {
var ok = true;
@@ -92,7 +92,7 @@ function RELATIONALOP() {
} else if (this.rule==5) {
var label = "≥";
}
- this.graphics.exprs = new ScilabDouble(this.exprs);
+ this.graphics.exprs = new ScilabDouble(exprs);
this.graphics.style = new ScilabString(["fontSize=13;fontStyle=1;displayedLabel="+label]);
this.model.ipar = new ScilabDouble([this.rule]);
this.model.nzcross = new ScilabDouble([this.zcr]);