diff options
Diffstat (limited to 'js/Misc/EDGE_TRIGGER.js')
-rw-r--r-- | js/Misc/EDGE_TRIGGER.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Misc/EDGE_TRIGGER.js b/js/Misc/EDGE_TRIGGER.js index 8bc4c23d..8be4e5f6 100644 --- a/js/Misc/EDGE_TRIGGER.js +++ b/js/Misc/EDGE_TRIGGER.js @@ -88,6 +88,8 @@ function EDGE_TRIGGER() { alert("parameters cannot be modified"); } EDGE_TRIGGER.prototype.set = function EDGE_TRIGGER() { + 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=="EDGETRIGGER") { var ppath = list(i); break; @@ -104,6 +106,7 @@ function EDGE_TRIGGER() { spath[$+1-1] = "objs"; spath[$+1-1] = path[k-1]; } + var xx = getObjectFromKeyList(this, spath); execstr("xxn="+xx.gui+"(\'set\',xx)"); if (diffobjs(this.xxn,xx)) { this.model = xx.model; @@ -145,6 +148,7 @@ function EDGE_TRIGGER() { var needcompile = 4; } } + getObjectFromKeyList(this, spath) = this.xxn; newpar[size(newpar)+1-1] = path; var y = max(y,needcompile); } |