summaryrefslogtreecommitdiff
path: root/js/Branching/SELECT_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SELECT_f.js')
-rw-r--r--js/Branching/SELECT_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/SELECT_f.js b/js/Branching/SELECT_f.js
index e411d498..202df7e4 100644
--- a/js/Branching/SELECT_f.js
+++ b/js/Branching/SELECT_f.js
@@ -12,9 +12,9 @@ function SELECT_f() {
this.model.dstate = new ScilabDouble([this.z0]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
- this.exprs = [[string(this.nin)],[string(this.z0+1)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SELECT_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[string(this.nin)],[string(this.z0+1)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SELECT_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
SELECT_f.prototype.details = function SELECT_f() {
@@ -28,7 +28,7 @@ function SELECT_f() {
return options;
}
SELECT_f.prototype.set = function SELECT_f() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.nin = parseFloat(arguments[0]["nin"]);
@@ -45,7 +45,7 @@ function SELECT_f() {
this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabDouble([this.z0-1]);
this.x.graphics = this.graphics;
this.x.model = this.model;