summaryrefslogtreecommitdiff
path: root/js/Misc/EDGETRIGGER.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-22 15:17:51 +0530
committerSunil Shetye2018-06-22 16:38:30 +0530
commit870479a2e4b932426a904b2ebae7e4ee72037326 (patch)
tree7e089fd43599783dbddeef0bc7460dd085389b29 /js/Misc/EDGETRIGGER.js
parentec185db61d5b6fa65322296e48a983de36436cd0 (diff)
downloadsci2js-870479a2e4b932426a904b2ebae7e4ee72037326.tar.gz
sci2js-870479a2e4b932426a904b2ebae7e4ee72037326.tar.bz2
sci2js-870479a2e4b932426a904b2ebae7e4ee72037326.zip
save global variables in first pass
read those variables in second pass
Diffstat (limited to 'js/Misc/EDGETRIGGER.js')
-rw-r--r--js/Misc/EDGETRIGGER.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js
index 0d85569d..e8cbd733 100644
--- a/js/Misc/EDGETRIGGER.js
+++ b/js/Misc/EDGETRIGGER.js
@@ -8,7 +8,7 @@ model.in1=1;
model.out=1;
model.dstate=0;
model.nzcross=1;
-model.ipar=sign[edge-1];
+model.ipar=sign(edge);
model.blocktype="c";
model.dep_ut=[true,false];
exprs=[string(edge)];
@@ -29,7 +29,7 @@ while (true) {
if (!ok) {
break;
}
-model.ipar=sign[edge-1];
+model.ipar=sign(edge);
graphics.exprs=exprs;
x.graphics=graphics;
x.model=model;