summaryrefslogtreecommitdiff
path: root/js/Branching/GOTOMO.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/GOTOMO.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/GOTOMO.js')
-rw-r--r--js/Branching/GOTOMO.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/GOTOMO.js b/js/Branching/GOTOMO.js
index 349cc175..61e8134b 100644
--- a/js/Branching/GOTOMO.js
+++ b/js/Branching/GOTOMO.js
@@ -16,9 +16,9 @@ function GOTOMO() {
var mo = modelica();
mo.model = "gotomo";
mo.inputs = "p";
- this.exprs = [["A"],[sci2exp(1)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,1]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [["A"],[sci2exp(1)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTOMO\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,1]),this.model,new ScilabDouble(exprs),gr_i);
this.x.graphics.in_implicit = ["I"];
return new BasicBlock(this.x);
}
@@ -33,7 +33,7 @@ function GOTOMO() {
return options;
}
GOTOMO.prototype.set = function GOTOMO() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.tag = arguments[0]["tag"];
@@ -52,7 +52,7 @@ function GOTOMO() {
var needcompile = 4;
var y = needcompile;
}
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.model.ipar = new ScilabDouble([this.tagvis]);
this.x.model = this.model;