diff options
Diffstat (limited to 'js/Sources/TKSCALE.js')
-rw-r--r-- | js/Sources/TKSCALE.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js index a487f386..d98b2531 100644 --- a/js/Sources/TKSCALE.js +++ b/js/Sources/TKSCALE.js @@ -28,12 +28,12 @@ function TKSCALE() { return options; } TKSCALE.prototype.set = function TKSCALE() { - this.a = parseFloat(arguments[0]["a"]) - this.b = parseFloat(arguments[0]["b"]) - this.f = parseFloat(arguments[0]["f"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; - [ok,this.a,this.b,this.f,this.exprs] = scicos_getvalue("Set scale block parameters",["Min value","Max value","Normalization"],list("vec",1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.a = parseFloat(arguments[0]["a"]); + this.b = parseFloat(arguments[0]["b"]); + this.f = parseFloat(arguments[0]["f"]); + this.exprs = arguments[0]["exprs"]; if (ok) { this.graphics.exprs = new ScilabDouble([this.exprs]); this.model.rpar = new ScilabDouble([this.a],[this.b],[this.f]); |