diff options
Diffstat (limited to 'js/Misc/ENDBLK.js')
-rw-r--r-- | js/Misc/ENDBLK.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js index 25bae3f2..e26372f8 100644 --- a/js/Misc/ENDBLK.js +++ b/js/Misc/ENDBLK.js @@ -16,6 +16,8 @@ function ENDBLK() { alert("parameters cannot be modified"); } ENDBLK.prototype.set = function ENDBLK() { + 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=="END_c") { var ppath = list(i); break; @@ -32,6 +34,7 @@ function ENDBLK() { spath[$+1-1] = "objs"; spath[$+1-1] = path[k-1]; } + var xx = getObjectFromKeyList(this, spath); execstr("xxn="+xx.gui+"(\'set\',xx)"); if (!isequalbitwise(this.xxn,xx)) { this.model = xx.model; @@ -73,6 +76,7 @@ function ENDBLK() { var needcompile = 4; } } + getObjectFromKeyList(this, spath) = this.xxn; newpar[size(newpar)+1-1] = path; var y = max(y,needcompile); } |