summaryrefslogtreecommitdiff
path: root/js/Branching/FROMMO.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/FROMMO.js')
-rw-r--r--js/Branching/FROMMO.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/Branching/FROMMO.js b/js/Branching/FROMMO.js
index d7f417e4..207c71da 100644
--- a/js/Branching/FROMMO.js
+++ b/js/Branching/FROMMO.js
@@ -16,9 +16,9 @@ function FROMMO() {
var mo = modelica();
mo.model = "frommo";
mo.outputs = "n";
- var exprs = ["A"];
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
- this.x = standard_define([2,1],this.model,exprs,gr_i);
+ this.exprs = ["A"];
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"FROMMO\",sz(1),sz(2));"]);
+ this.x = standard_define([2,1],this.model,this.exprs,this.gr_i);
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);
}
@@ -33,12 +33,13 @@ function FROMMO() {
}
FROMMO.prototype.set = function FROMMO() {
this.tag = arguments[0]["tag"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs);
+ [ok,this.tag,this.exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),this.exprs);
if (!ok) {
break;
}
@@ -47,7 +48,7 @@ function FROMMO() {
var needcompile = 4;
var y = needcompile;
}
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.x.model = this.model;
this.x.graphics = this.graphics;