summaryrefslogtreecommitdiff
path: root/js/Sources/CLOCK_c.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/CLOCK_c.js')
-rw-r--r--js/Sources/CLOCK_c.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Sources/CLOCK_c.js b/js/Sources/CLOCK_c.js
index a967cc83..1b458be2 100644
--- a/js/Sources/CLOCK_c.js
+++ b/js/Sources/CLOCK_c.js
@@ -53,9 +53,6 @@ function CLOCK_c() {
return options;
}
CLOCK_c.prototype.set = function CLOCK_c() {
- this.dt = arguments[0]["dt"]
- this.t0 = arguments[0]["t0"]
- this.exprs0 = arguments[0]["exprs0"]
if (typeof(o)=="Block"&&o.gui=="EVTDLY_c") {
var path = i;
break;
@@ -68,7 +65,10 @@ function CLOCK_c() {
var dt_old = this.model.rpar[1-1];
var model_n = this.model;
while (true) {
- [ok,this.dt,this.t0,this.exprs0] = scicos_getvalue([[msprintf("Set %s block parameters","CLOCK_c")],[" "],["Event clock generator"],[" "],["  Do not start if \'Initialisation Time\' is negative"],[" "]],["Period","Initialisation Time"],list("vec",1,"vec",1),this.exprs);
+ var ok = true;
+ this.dt = arguments[0]["dt"];
+ this.t0 = arguments[0]["t0"];
+ this.exprs0 = arguments[0]["exprs0"];
if (!ok) {
break;
}