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.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js
index 690af30a..e3ed8c22 100644
--- a/js/Branching/GOTO.js
+++ b/js/Branching/GOTO.js
@@ -3,7 +3,7 @@ function GOTO() {
GOTO.prototype.define = function GOTO() {
this.model = scicos_model();
this.model.sim = new ScilabString(["goto"]);
- this.model.in1 = new ScilabDouble([-1]);
+ this.model.in = new ScilabDouble([-1]);
this.model.in2 = new ScilabDouble([-2]);
this.model.intyp = new ScilabDouble([-1]);
this.model.out = new ScilabDouble([]);
@@ -33,10 +33,7 @@ function GOTO() {
this.tag = arguments[0]["tag"]
this.tagvis = parseFloat(arguments[0]["tagvis"])
this.exprs = arguments[0]["exprs"]
- this.x = arg1;
- this.graphics = arg1.graphics;
this.exprs = this.graphics.exprs;
- this.model = arg1.model;
while (true) {
[ok,this.tag,this.tagvis,this.exprs] = scicos_getvalue("Set parameters",["Tag","Tag Visibility(1=Local 2=scoped 3= global)"],list("str",-1,"vec",1),this.exprs);
if (!ok) {
@@ -57,7 +54,6 @@ function GOTO() {
this.model.ipar = new ScilabDouble([this.tagvis]);
this.x.model = this.model;
this.x.graphics = this.graphics;
- var arg1 = this.x;
break;
}
}