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/Electrical/CVS.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/Electrical/CVS.js')
-rw-r--r-- | js/Electrical/CVS.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js index cdac5393..8e535c69 100644 --- a/js/Electrical/CVS.js +++ b/js/Electrical/CVS.js @@ -36,15 +36,15 @@ function CVS() { mo.outputs = MO; this.model.rpar = new ScilabDouble(PrametersValue); mo.parameters = list(ParametersName,PrametersValue,zeros(ParametersName)); - this.exprs = []; - this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]); + var exprs = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CVS\",sz(1),sz(2));"]); this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = new ScilabBoolean([false,true]); mo.model = ModelName; this.model.equations = new ScilabDouble([mo]); this.model.in = new ScilabDouble([ones(size(MI,"*"),1)]); this.model.out = new ScilabDouble([ones(size(MO,"*"),1)]); - this.x = new standard_define(new ScilabDouble([2.1,3]),this.model,new ScilabDouble(this.exprs),list(this.gr_i,0)); + this.x = new standard_define(new ScilabDouble([2.1,3]),this.model,new ScilabDouble(exprs),list(gr_i,0)); this.x.graphics.in_implicit = Typein; this.x.graphics.out_implicit = Typeout; return new BasicBlock(this.x); @@ -56,7 +56,7 @@ function CVS() { alert("parameters cannot be modified"); } CVS.prototype.set = function CVS() { - this.exprs = this.graphics.exprs; + var exprs = this.graphics.exprs; return new BasicBlock(this.x); } } |