diff options
Diffstat (limited to 'js/Electrical/Resistor.js')
-rw-r--r-- | js/Electrical/Resistor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 381dc950..fa493c6d 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -16,7 +16,7 @@ function Resistor() { this.model.in1 = new ScilabDouble([ones(size(mo.inputs,"*"),1)]); this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]); var exprs = string(this.R); - var gr_i = []; + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Resistor\",sz(1),sz(2));"]); this.x = standard_define([2,1],this.model,exprs,list(gr_i,0)); this.x.graphics.in_implicit = ["I"]; this.x.graphics.out_implicit = ["I"]; |