summaryrefslogtreecommitdiff
path: root/js/Sources/CLOCK_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-08-24 11:46:02 +0530
committerSunil Shetye2018-08-27 16:43:40 +0530
commit3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch)
treedc8b98c70c10cec2c9f3f37b5858e1afd6554698 /js/Sources/CLOCK_f.js
parent9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff)
downloadsci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2
sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip
remove exprs and gr_i from default global list
Diffstat (limited to 'js/Sources/CLOCK_f.js')
-rw-r--r--js/Sources/CLOCK_f.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Sources/CLOCK_f.js b/js/Sources/CLOCK_f.js
index df9054ba..ecdc94c0 100644
--- a/js/Sources/CLOCK_f.js
+++ b/js/Sources/CLOCK_f.js
@@ -21,7 +21,7 @@ function CLOCK_f() {
split.graphics.orig = [[380.71066],[172]];
split.graphics.pein = 3;
split.graphics.peout = [[5],[6]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLOCK_f\",sz(1),sz(2));"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLOCK_f\",sz(1),sz(2));"]);
var diagram = scicos_diagram();
diagram.objs[1-1] = output_port;
diagram.objs[2-1] = evtdly;
@@ -32,7 +32,7 @@ function CLOCK_f() {
this.x = scicos_block();
this.x.gui = "CLOCK_f";
this.x.graphics.sz = [2,2];
- this.x.graphics.gr_i = this.gr_i;
+ this.x.graphics.gr_i = gr_i;
this.x.graphics.peout = 0;
this.x.model.sim = "csuper";
this.x.model.evtout = 1;
@@ -59,7 +59,7 @@ function CLOCK_f() {
}
}
var newpar = list();
- this.exprs = xx.graphics.exprs;
+ var exprs = xx.graphics.exprs;
this.model = xx.model;
var t0_old = this.model.firing;
var dt_old = this.model.rpar;
@@ -85,7 +85,7 @@ function CLOCK_f() {
break;
}
}
- if (!and([t0_old,dt_old]==[this.t0,this.dt])||!and(this.exprs0==this.exprs)) {
+ if (!and([t0_old,dt_old]==[this.t0,this.dt])||!and(this.exprs0==exprs)) {
newpar[size(newpar)+1-1] = path;
}
if (t0_old!=this.t0) {