diff options
Diffstat (limited to 'js/Events/MCLOCK_f.js')
-rw-r--r-- | js/Events/MCLOCK_f.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Events/MCLOCK_f.js b/js/Events/MCLOCK_f.js index 3292eff3..dcf736a5 100644 --- a/js/Events/MCLOCK_f.js +++ b/js/Events/MCLOCK_f.js @@ -76,6 +76,8 @@ function MCLOCK_f() { alert("parameters cannot be modified"); } MCLOCK_f.prototype.set = function MCLOCK_f() { + for (i=1;i<=length(this.model.rpar.objs);i+=1) { + var o = this.model.rpar.objs[i-1]; if (typeof(o)=="Block"&&o.gui=="MFCLCK_f") { var path = i; break; @@ -83,8 +85,10 @@ function MCLOCK_f() { } var newpar = list(); var spath = list("model","rpar","objs",path); + var xx = getObjectFromKeyList(this, spath); execstr("xxn="+xx.gui+"(\'set\',xx)"); if (or(this.xxn!=xx)) { + getObjectFromKeyList(this, spath) = this.xxn; newpar[size(newpar)+1-1] = path; } var y = 0; |