summaryrefslogtreecommitdiff
path: root/js/Electrical/CurrentSensor.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/CurrentSensor.js')
-rw-r--r--js/Electrical/CurrentSensor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js
index 752f7b9b..c0468b36 100644
--- a/js/Electrical/CurrentSensor.js
+++ b/js/Electrical/CurrentSensor.js
@@ -14,7 +14,7 @@ function CurrentSensor() {
this.model.equations = new ScilabDouble([mo]);
this.exprs = [];
this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CurrentSensor\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,this.exprs,list(this.gr_i,0));
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,this.exprs,list(this.gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["E"]];
return new BasicBlock(this.x);