diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/Sources/RAMP.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/Sources/RAMP.js')
-rw-r--r-- | js/Sources/RAMP.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/RAMP.js b/js/Sources/RAMP.js index 4e351fee..a18024eb 100644 --- a/js/Sources/RAMP.js +++ b/js/Sources/RAMP.js @@ -31,13 +31,13 @@ function RAMP() { return options; } RAMP.prototype.set = function RAMP() { - this.slope = parseFloat(arguments[0]["slope"]) - this.stt = parseFloat(arguments[0]["stt"]) - this.iout = parseFloat(arguments[0]["iout"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; while (true) { - [ok,this.slope,this.stt,this.iout,this.exprs] = scicos_getvalue([[msprintf("Set %s block parameters","RAMP")],[" "],["Ramp function"],[" "]],["Slope","Start Time","Initial Value"],list("vec",1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.slope = parseFloat(arguments[0]["slope"]); + this.stt = parseFloat(arguments[0]["stt"]); + this.iout = parseFloat(arguments[0]["iout"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |