summaryrefslogtreecommitdiff
path: root/js/Branching/ESELECT_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-08-24 11:46:02 +0530
committerSunil Shetye2018-08-27 16:43:40 +0530
commit3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch)
treedc8b98c70c10cec2c9f3f37b5858e1afd6554698 /js/Branching/ESELECT_f.js
parent9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff)
downloadsci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip
remove exprs and gr_i from default global list
Diffstat (limited to 'js/Branching/ESELECT_f.js')
-rw-r--r--js/Branching/ESELECT_f.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Branching/ESELECT_f.js b/js/Branching/ESELECT_f.js
index 094fa043..b3ae4889 100644
--- a/js/Branching/ESELECT_f.js
+++ b/js/Branching/ESELECT_f.js
@@ -14,9 +14,9 @@ function ESELECT_f() {
this.model.dep_ut = new ScilabBoolean([true,false]);
this.model.nmode = new ScilabDouble([0]);
this.model.nzcross = new ScilabDouble([0]);
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ESELECT_f\",sz(1),sz(2));"]);
- this.exprs = [[string(this.out)],[string(1)],[string(this.model.nmode)]];
- this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ESELECT_f\",sz(1),sz(2));"]);
+ var exprs = [[string(this.out)],[string(1)],[string(this.model.nmode)]];
+ this.x = new standard_define(new ScilabDouble([4,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
ESELECT_f.prototype.details = function ESELECT_f() {
@@ -31,12 +31,12 @@ function ESELECT_f() {
return options;
}
ESELECT_f.prototype.set = function ESELECT_f() {
- this.exprs = this.graphics.exprs;
- if (size(this.exprs,"*")==1) {
- this.exprs[2-1] = string(1);
+ var exprs = this.graphics.exprs;
+ if (size(exprs,"*")==1) {
+ exprs[2-1] = string(1);
}
- if (size(this.exprs,"*")==2) {
- this.exprs[3-1] = string(0);
+ if (size(exprs,"*")==2) {
+ exprs[3-1] = string(0);
}
while (true) {
var ok = true;
@@ -64,7 +64,7 @@ function ESELECT_f() {
this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.evtout = new ScilabDouble([ones(this.out,1)]);
this.model.firing = new ScilabDouble([-ones(this.out,1)]);
this.x.graphics = this.graphics;