summaryrefslogtreecommitdiff
path: root/js/Electrical/SineVoltage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/SineVoltage.js')
-rw-r--r--js/Electrical/SineVoltage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index 4b6f5c2b..acf54cb3 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -55,7 +55,7 @@ function SineVoltage() {
break;
}
this.model.rpar = [[this.V],[this.ph],[this.frq],[this.offset],[this.start]];
- this.model.equations.parameters[('2', 'double')] = list(this.V,this.ph,this.frq,this.offset,this.start);
+ this.model.equations.parameters[2] = list(new ScilabDouble(this.V),new ScilabDouble(this.ph),new ScilabDouble(this.frq),new ScilabDouble(this.offset),new ScilabDouble(this.start));
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;