diff options
Diffstat (limited to 'js/Electrical/Ground.js')
-rw-r--r-- | js/Electrical/Ground.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js index 50163380..e7c04710 100644 --- a/js/Electrical/Ground.js +++ b/js/Electrical/Ground.js @@ -11,9 +11,9 @@ function Ground() { mo.model = "Ground"; mo.inputs = "p"; this.model.equations = new ScilabDouble([mo]); - var exprs = ""; - var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]); - this.x = standard_define([1,1],this.model,exprs,list(gr_i,0)); + this.exprs = ""; + this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Ground\",sz(1),sz(2));"]); + this.x = standard_define([1,1],this.model,this.exprs,list(this.gr_i,0)); this.x.graphics.in_implicit = ["I"]; this.x.graphics.out_implicit = ["I"]; return new GroundBlock(this.x); |