summaryrefslogtreecommitdiff
path: root/js/Sources/FROMWS_c.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/Sources/FROMWS_c.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/Sources/FROMWS_c.js')
-rw-r--r--js/Sources/FROMWS_c.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Sources/FROMWS_c.js b/js/Sources/FROMWS_c.js
index a166ca27..df7373cf 100644
--- a/js/Sources/FROMWS_c.js
+++ b/js/Sources/FROMWS_c.js
@@ -10,7 +10,7 @@ model.sim=list("fromws_c",4);
model.out=-1;
model.out2=-2;
model.outtyp=-1;
-model.ipar=[[length(varnam)],[_str2code[varnam-1]],[Method],[ZC],[OutEnd]];
+model.ipar=[[length(varnam)],[this._str2code[varnam-1]],[Method],[ZC],[OutEnd]];
model.evtin=[1];
model.evtout=[1];
model.firing=[0];
@@ -53,7 +53,7 @@ message([["Invalid variable name."],["Please choose another variable name."]]);
ok=false;
}
if (ok) {
-model.ipar=[[length(varnam)],[_str2code[varnam-1]],[Method],[ZC],[OutEnd]];
+model.ipar=[[length(varnam)],[this._str2code[varnam-1]],[Method],[ZC],[OutEnd]];
[model,graphics,ok]=set_io(model,graphics,list(),list([-1,-2],-1),1,1);
if (ok) {
graphics.exprs=exprs;