diff options
Diffstat (limited to 'js/Branching/CLKGOTO.js')
-rw-r--r-- | js/Branching/CLKGOTO.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/js/Branching/CLKGOTO.js b/js/Branching/CLKGOTO.js index 237992ae..cc21a9a0 100644 --- a/js/Branching/CLKGOTO.js +++ b/js/Branching/CLKGOTO.js @@ -9,8 +9,8 @@ function CLKGOTO() { this.model.blocktype = new ScilabString(["d"]); this.model.firing = new ScilabDouble([-1]); this.model.dep_ut = new ScilabDouble([false,false]); - var exprs = [["A"],[sci2exp(1)]]; - this.x = standard_define([2,1],this.model,exprs," "); + this.exprs = [["A"],[sci2exp(1)]]; + this.x = standard_define([2,1],this.model,this.exprs," "); this.x.graphics.id = "Goto"; return new BasicBlock(this.x); } @@ -27,12 +27,13 @@ function CLKGOTO() { CLKGOTO.prototype.set = function CLKGOTO() { this.tag = arguments[0]["tag"] this.tagvis = parseFloat(arguments[0]["tagvis"]) + this.exprs = arguments[0]["exprs"] this.x = arg1; this.graphics = arg1.graphics; this.model = arg1.model; - var exprs = this.graphics.exprs; + this.exprs = this.graphics.exprs; while (true) { - [ok,this.tag,this.tagvis,exprs] = scicos_getvalue("Set block parameters",["Tag","Tag Visibility (1=Local 2=Scoped 3=Global)"],list("str",-1,"vec",1),exprs); + [ok,this.tag,this.tagvis,this.exprs] = scicos_getvalue("Set block parameters",["Tag","Tag Visibility (1=Local 2=Scoped 3=Global)"],list("str",-1,"vec",1),this.exprs); if (!ok) { break; } @@ -50,7 +51,7 @@ function CLKGOTO() { this.model.ipar = new ScilabDouble([this.tagvis]); this.model.evtin = new ScilabDouble([1]); this.model.firing = new ScilabDouble([-1]); - this.graphics.exprs = new ScilabDouble([exprs]); + this.graphics.exprs = new ScilabDouble([this.exprs]); this.x.graphics = this.graphics; this.x.model = this.model; break; |