summaryrefslogtreecommitdiff
path: root/js/Branching/GOTO.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/GOTO.js')
-rw-r--r--js/Branching/GOTO.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js
index 8d660d2f..fc85e462 100644
--- a/js/Branching/GOTO.js
+++ b/js/Branching/GOTO.js
@@ -13,9 +13,9 @@ function GOTO() {
this.model.opar = list(new ScilabString(["A"]));
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([false,false]);
- this.exprs = [["A"],[sci2exp(1)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GOTO\",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),\"GOTO\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,1]),this.model,new ScilabDouble(exprs),gr_i);
this.x.graphics.id = "Goto";
return new BasicBlock(this.x);
}
@@ -30,7 +30,7 @@ function GOTO() {
return options;
}
GOTO.prototype.set = function GOTO() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.tag = arguments[0]["tag"];
@@ -49,7 +49,7 @@ function GOTO() {
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;