summaryrefslogtreecommitdiff
path: root/js/Misc/EDGE_TRIGGER.js
diff options
context:
space:
mode:
authorSunil Shetye2018-08-29 17:37:00 +0530
committerSunil Shetye2018-08-29 18:03:04 +0530
commit6a435095be880c696cb975d859ec730046021a75 (patch)
tree92a7831d3dc4ecb878f7bd5c896df50c8244f2ee /js/Misc/EDGE_TRIGGER.js
parent352623792d2b9400510599c487540b1e763a7d3c (diff)
downloadsci2js-6a435095be880c696cb975d859ec730046021a75.tar.gz
sci2js-6a435095be880c696cb975d859ec730046021a75.tar.bz2
sci2js-6a435095be880c696cb975d859ec730046021a75.zip
support arg1 parsing
Diffstat (limited to 'js/Misc/EDGE_TRIGGER.js')
-rw-r--r--js/Misc/EDGE_TRIGGER.js4
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);
}