summaryrefslogtreecommitdiff
path: root/js/Sources/TKSCALE.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/TKSCALE.js')
-rw-r--r--js/Sources/TKSCALE.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js
index 257b69fd..e0ea58b3 100644
--- a/js/Sources/TKSCALE.js
+++ b/js/Sources/TKSCALE.js
@@ -11,9 +11,9 @@ function TKSCALE() {
this.model.rpar = new ScilabDouble([this.a],[this.b],[this.f]);
this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = new ScilabBoolean([false,false]);
- this.exprs = [[sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.f)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TKSCALE\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[sci2exp(this.a)],[sci2exp(this.b)],[sci2exp(this.f)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TKSCALE\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
TKSCALE.prototype.details = function TKSCALE() {
@@ -28,13 +28,13 @@ function TKSCALE() {
return options;
}
TKSCALE.prototype.set = function TKSCALE() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
var ok = true;
this.a = parseFloat(arguments[0]["a"]);
this.b = parseFloat(arguments[0]["b"]);
this.f = parseFloat(arguments[0]["f"]);
if (ok) {
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.rpar = new ScilabDouble([this.a],[this.b],[this.f]);
this.x.graphics = this.graphics;
this.x.model = this.model;