summaryrefslogtreecommitdiff
path: root/js/Sources/RAMP.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/RAMP.js')
-rw-r--r--js/Sources/RAMP.js10
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;
}