summaryrefslogtreecommitdiff
path: root/js/NonLinear/ABS_VALUE.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/NonLinear/ABS_VALUE.js')
-rw-r--r--js/NonLinear/ABS_VALUE.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/NonLinear/ABS_VALUE.js b/js/NonLinear/ABS_VALUE.js
index aa3633bf..acaca0a4 100644
--- a/js/NonLinear/ABS_VALUE.js
+++ b/js/NonLinear/ABS_VALUE.js
@@ -10,9 +10,9 @@ function ABS_VALUE() {
this.model.nmode = new ScilabDouble([nu]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
- this.exprs = [string([1])];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ABS_VALUE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString(this.exprs),this.gr_i);
+ var exprs = [string([1])];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"ABS_VALUE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabString(exprs),gr_i);
return new BasicBlock(this.x);
}
ABS_VALUE.prototype.details = function ABS_VALUE() {
@@ -25,14 +25,14 @@ function ABS_VALUE() {
return options;
}
ABS_VALUE.prototype.set = function ABS_VALUE() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
var ok = true;
this.zcr = arguments[0]["zcr"];
if (!ok) {
break;
}
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
if (ok) {
if (this.zcr!=0) {
this.model.nmode = new ScilabDouble([-1]);