summaryrefslogtreecommitdiff
path: root/js/Misc/CONSTRAINT2_c.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/CONSTRAINT2_c.js')
-rw-r--r--js/Misc/CONSTRAINT2_c.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js
index 192d0ab0..01675ac1 100644
--- a/js/Misc/CONSTRAINT2_c.js
+++ b/js/Misc/CONSTRAINT2_c.js
@@ -12,9 +12,9 @@ function CONSTRAINT2_c() {
this.model.ipar = new ScilabDouble(this.id);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([false,true]);
- this.exprs = list(strcat(sci2exp(this.x0)),strcat(sci2exp(this.xd0)),strcat(sci2exp(this.id)));
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT2_c\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3,2]),this.model,this.exprs,this.gr_i);
+ var exprs = list(strcat(sci2exp(this.x0)),strcat(sci2exp(this.xd0)),strcat(sci2exp(this.id)));
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CONSTRAINT2_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3,2]),this.model,exprs,gr_i);
return new BasicBlock(this.x);
}
CONSTRAINT2_c.prototype.details = function CONSTRAINT2_c() {
@@ -29,7 +29,7 @@ function CONSTRAINT2_c() {
return options;
}
CONSTRAINT2_c.prototype.set = function CONSTRAINT2_c() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ask_again = false;
var ok = true;
@@ -67,7 +67,7 @@ function CONSTRAINT2_c() {
}
}
if (!ask_again) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.state = new ScilabDouble([this.x0],[this.xd0]);
this.model.out = new ScilabDouble([N],[N]);
this.model.in = new ScilabDouble([N]);