diff options
author | Sunil Shetye | 2018-08-24 11:46:02 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-27 16:43:40 +0530 |
commit | 3386d0d537a498adce65f313aacb7ca4a147a4d2 (patch) | |
tree | dc8b98c70c10cec2c9f3f37b5858e1afd6554698 /js/Linear/TIME_DELAY.js | |
parent | 9fee9bd7e5e356e872c7a539d4a6cfa89cae593c (diff) | |
download | sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.gz sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.tar.bz2 sci2js-3386d0d537a498adce65f313aacb7ca4a147a4d2.zip |
remove exprs and gr_i from default global list
Diffstat (limited to 'js/Linear/TIME_DELAY.js')
-rw-r--r-- | js/Linear/TIME_DELAY.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js index 7abbe110..deaad0f0 100644 --- a/js/Linear/TIME_DELAY.js +++ b/js/Linear/TIME_DELAY.js @@ -13,9 +13,9 @@ function TIME_DELAY() { this.model.ipar = new ScilabDouble([this.N]); this.model.blocktype = new ScilabString(["x"]); this.model.dep_ut = new ScilabBoolean([false,true]); - this.exprs = [[string(this.T)],[string(this.init)],[string(this.N)]]; - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_DELAY\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([3.5,2]),this.model,new ScilabDouble(this.exprs),this.gr_i); + var exprs = [[string(this.T)],[string(this.init)],[string(this.N)]]; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"TIME_DELAY\",sz(1),sz(2));"]); + this.x = new standard_define(new ScilabDouble([3.5,2]),this.model,new ScilabDouble(exprs),gr_i); return new BasicBlock(this.x); } TIME_DELAY.prototype.details = function TIME_DELAY() { @@ -30,7 +30,7 @@ function TIME_DELAY() { return options; } TIME_DELAY.prototype.set = function TIME_DELAY() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; var nin = this.model.in[1-1]; while (true) { var ok = true; @@ -57,7 +57,7 @@ function TIME_DELAY() { var ok = tmpvar0[2]; } if (ok) { - this.graphics.exprs = new ScilabDouble([this.exprs]); + this.graphics.exprs = new ScilabDouble([exprs]); this.model.rpar = new ScilabDouble([this.T],[this.init]); this.model.ipar = new ScilabDouble([this.N]); this.model.dep_ut = new ScilabBoolean([false,true]); |