summaryrefslogtreecommitdiff
path: root/js/Branching/SWITCH_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/SWITCH_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/SWITCH_f.js')
-rw-r--r--js/Branching/SWITCH_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js
index fd7a2526..654afc01 100644
--- a/js/Branching/SWITCH_f.js
+++ b/js/Branching/SWITCH_f.js
@@ -12,9 +12,9 @@ function SWITCH_f() {
this.model.blocktype = new ScilabString(["c"]);
this.model.firing = new ScilabDouble([]);
this.model.dep_ut = new ScilabBoolean([true,true]);
- this.exprs = [[string(this.nin)],[string(i0+1)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",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(this.nin)],[string(i0+1)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SWITCH_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
SWITCH_f.prototype.details = function SWITCH_f() {
@@ -28,7 +28,7 @@ function SWITCH_f() {
return options;
}
SWITCH_f.prototype.set = function SWITCH_f() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
var ipar = this.model.ipar;
while (true) {
var ok = true;
@@ -46,7 +46,7 @@ function SWITCH_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.ipar = new ScilabString([this.z0-1]);
this.x.graphics = this.graphics;
this.x.model = this.model;