diff options
Diffstat (limited to 'js/Branching/FROM.js')
-rw-r--r-- | js/Branching/FROM.js | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/js/Branching/FROM.js b/js/Branching/FROM.js index 765a40b6..3317192f 100644 --- a/js/Branching/FROM.js +++ b/js/Branching/FROM.js @@ -1,46 +1,46 @@ /* autogenerated from "macros/Branching/FROM.sci" */ function FROM() { FROM.prototype.define = function FROM() { -model=scicos_model(); -model.sim="from"; -model.in1=[]; -model.in2=[]; -model.intyp=1; -model.out=-1; -model.out2=-2; -model.outtyp=-1; -model.ipar=[]; -model.opar=list("A"); -model.blocktype="c"; -model.dep_ut=[false,false]; -exprs=["A"]; -gr_i=[]; -x=standard_define([2,1],model,exprs,gr_i); -x.graphics.id="From"; + model = scicos_model(); + model.sim = "from"; + model.in1 = []; + model.in2 = []; + model.intyp = 1; + model.out = -1; + model.out2 = -2; + model.outtyp = -1; + model.ipar = []; + model.opar = list("A"); + model.blocktype = "c"; + model.dep_ut = [false,false]; + exprs = ["A"]; + gr_i = []; + x = standard_define([2,1],model,exprs,gr_i); + x.graphics.id = "From"; } FROM.prototype.details = function FROM() { } FROM.prototype.get = function FROM() { } FROM.prototype.set = function FROM() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (true) { -[ok,tag,exprs]=scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs); -if (!ok) { + x = arg1; + graphics = arg1.graphics; + exprs = graphics.exprs; + model = arg1.model; + while (true) { + [ok,tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs); + if (!ok) { break; } -if (ok) { -if (model.opar!=list(tag)) { -needcompile=4; -y=needcompile; + if (ok) { + if (model.opar!=list(tag)) { + needcompile = 4; + y = needcompile; } -graphics.exprs=exprs; -model.opar=list(tag); -x.model=model; -x.graphics=graphics; + graphics.exprs = exprs; + model.opar = list(tag); + x.model = model; + x.graphics = graphics; break; } } |