summaryrefslogtreecommitdiff
path: root/js/Events/EVTDLY_c.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Events/EVTDLY_c.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Events/EVTDLY_c.js')
-rw-r--r--js/Events/EVTDLY_c.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Events/EVTDLY_c.js b/js/Events/EVTDLY_c.js
index 0abb9bca..4b223c5f 100644
--- a/js/Events/EVTDLY_c.js
+++ b/js/Events/EVTDLY_c.js
@@ -27,12 +27,12 @@ function EVTDLY_c() {
return options;
}
EVTDLY_c.prototype.set = function EVTDLY_c() {
- this.dt = parseFloat(arguments[0]["dt"])
- this.ff = parseFloat(arguments[0]["ff"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.dt,this.ff,this.exprs] = scicos_getvalue([["Set Event Delay block parameters"],["Delay is the delay between an input event "],[" and the generated output event"],["Block may initially generate an output event before "],[" any input event. \"Date of initial output event\""],[" gives the date of this event. Set a negative value"],[" to disable any output event."]],["Delay","Date of initial output event"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.dt = parseFloat(arguments[0]["dt"]);
+ this.ff = parseFloat(arguments[0]["ff"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}