summaryrefslogtreecommitdiff
path: root/js/Sources/FROMWSB.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/FROMWSB.js')
-rw-r--r--js/Sources/FROMWSB.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Sources/FROMWSB.js b/js/Sources/FROMWSB.js
index a3ffd864..bc33c12c 100644
--- a/js/Sources/FROMWSB.js
+++ b/js/Sources/FROMWSB.js
@@ -18,6 +18,8 @@ function FROMWSB() {
alert("parameters cannot be modified");
}
FROMWSB.prototype.set = function FROMWSB() {
+ 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=="FROMWS_c") {
var ppath = list(i);
break;
@@ -34,6 +36,7 @@ function FROMWSB() {
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;
@@ -75,6 +78,7 @@ function FROMWSB() {
var needcompile = 4;
}
}
+ getObjectFromKeyList(this, spath) = this.xxn;
newpar[size(newpar)+1-1] = path;
var y = max(y,needcompile);
}