summaryrefslogtreecommitdiff
path: root/js/Electrical/Inductor.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/Inductor.js')
-rw-r--r--js/Electrical/Inductor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js
index 545ff3b0..86ad7fbb 100644
--- a/js/Electrical/Inductor.js
+++ b/js/Electrical/Inductor.js
@@ -42,7 +42,7 @@ function Inductor() {
break;
}
this.model.rpar = new ScilabDouble(this.L);
- this.model.equations.parameters[('2', 'double')] = list(this.L);
+ this.model.equations.parameters[2] = list(new ScilabDouble(this.L));
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;