diff options
Diffstat (limited to 'js/Branching/CLKFROM.js')
-rw-r--r-- | js/Branching/CLKFROM.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/js/Branching/CLKFROM.js b/js/Branching/CLKFROM.js index 161e51d1..d94d654d 100644 --- a/js/Branching/CLKFROM.js +++ b/js/Branching/CLKFROM.js @@ -1,15 +1,15 @@ /* autogenerated from "macros/Branching/CLKFROM.sci" */ function CLKFROM() { CLKFROM.prototype.define = function CLKFROM() { - model = scicos_model(); - model.sim = "clkfrom"; - model.evtout = 1; - model.opar = list("A"); - model.blocktype = "d"; - model.firing = -1; - model.dep_ut = [false,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString("clkfrom"); + this.model.evtout = new ScilabDouble(1); + this.model.opar = list("A"); + this.model.blocktype = new ScilabString("d"); + this.model.firing = new ScilabDouble(-1); + this.model.dep_ut = [false,false]; exprs = "A"; - this.x = standard_define([2,1],model,exprs," "); + this.x = standard_define([2,1],this.model,exprs," "); this.x.graphics.id = "From"; return new BasicBlock(this.x); } @@ -25,23 +25,23 @@ function CLKFROM() { this.tag = arguments[0]["tag"] this.x = arg1; graphics = arg1.graphics; - model = arg1.model; + this.model = arg1.model; exprs = graphics.exprs; while (true) { [ok,this.tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs); if (!ok) { break; } - if (model.opar!=list(this.tag)) { + if (this.model.opar!=list(this.tag)) { needcompile = 4; y = needcompile; } - model.opar = list(this.tag); - model.evtout = 1; - model.firing = -1; + this.model.opar = list(this.tag); + this.model.evtout = new ScilabDouble(1); + this.model.firing = new ScilabDouble(-1); graphics.exprs = exprs; this.x.graphics = graphics; - this.x.model = model; + this.x.model = this.model; break; } needcompile = resume(needcompile) |