diff options
author | Sunil Shetye | 2018-06-25 18:20:39 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-26 11:06:22 +0530 |
commit | 7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (patch) | |
tree | e8e3e4dd60d469c290d55de15644ddbc1e013bc6 /js/Branching/CLKFROM.js | |
parent | 7c70459c10aed0d74ee03896abaf47fefdbf7c8f (diff) | |
download | sci2js-7465daea85285ba7f291b6bf6ddc45caa9e7ad65.tar.gz sci2js-7465daea85285ba7f291b6bf6ddc45caa9e7ad65.tar.bz2 sci2js-7465daea85285ba7f291b6bf6ddc45caa9e7ad65.zip |
add spacing to end of block also
Diffstat (limited to 'js/Branching/CLKFROM.js')
-rw-r--r-- | js/Branching/CLKFROM.js | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/js/Branching/CLKFROM.js b/js/Branching/CLKFROM.js index 3f33b7be..168cf14d 100644 --- a/js/Branching/CLKFROM.js +++ b/js/Branching/CLKFROM.js @@ -9,35 +9,36 @@ function CLKFROM() { model.firing = -1; model.dep_ut = [false,false]; exprs = "A"; - x = standard_define([2,1],model,exprs," "); - x.graphics.id = "From"; + this.x = standard_define([2,1],model,exprs," "); + this.x.graphics.id = "From"; } CLKFROM.prototype.details = function CLKFROM() { + return this.x; } CLKFROM.prototype.get = function CLKFROM() { } CLKFROM.prototype.set = function CLKFROM() { - x = arg1; + this.x = arg1; graphics = arg1.graphics; model = arg1.model; exprs = graphics.exprs; while (true) { - [ok,tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs); - if (!ok) { -break; -} - if (model.opar!=list(tag)) { - needcompile = 4; - y = needcompile; -} - model.opar = list(tag); - model.evtout = 1; - model.firing = -1; - graphics.exprs = exprs; - x.graphics = graphics; - x.model = model; -break; -} -needcompile=resume(needcompile) + [ok,tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs); + if (!ok) { + break; + } + if (model.opar!=list(tag)) { + needcompile = 4; + y = needcompile; + } + model.opar = list(tag); + model.evtout = 1; + model.firing = -1; + graphics.exprs = exprs; + this.x.graphics = graphics; + this.x.model = model; + break; + } + needcompile=resume(needcompile) } } |