summaryrefslogtreecommitdiff
path: root/js/Sources/CLOCK_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/CLOCK_f.js')
-rw-r--r--js/Sources/CLOCK_f.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Sources/CLOCK_f.js b/js/Sources/CLOCK_f.js
index dd3a158a..8afa8368 100644
--- a/js/Sources/CLOCK_f.js
+++ b/js/Sources/CLOCK_f.js
@@ -47,14 +47,14 @@ x.model.rpar=diagram;
}
CLOCK_f.prototype.set = function CLOCK_f() {
for (i=1;i<=length(arg1.model.rpar.objs);i+=1) {
-o=arg1.model.rpar.objs(i);
+o=arg1.model.rpar.objs[i-1];
if (typeof(o)=="Block"&&o.gui=="EVTDLY_f") {
path=i;
break;
}
}
newpar=list();
-xx=arg1.model.rpar.objs(path);
+xx=arg1.model.rpar.objs[path-1];
exprs=xx.graphics.exprs;
model=xx.model;
t0_old=model.firing;