summaryrefslogtreecommitdiff
path: root/js/Electrical/SineVoltage.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-06 10:38:38 +0530
committerSunil Shetye2018-07-09 12:16:25 +0530
commit5a28e41a3105338f747b8a30f67000920490c67d (patch)
treee55c568d243ea8e0ec539f0df20cefbc3e42f3ef /js/Electrical/SineVoltage.js
parent200c4cfb3bd50c0b05fdf5b58c6e3671853cc5ad (diff)
downloadsci2js-5a28e41a3105338f747b8a30f67000920490c67d.tar.gz
sci2js-5a28e41a3105338f747b8a30f67000920490c67d.tar.bz2
sci2js-5a28e41a3105338f747b8a30f67000920490c67d.zip
make string as the default type
Diffstat (limited to 'js/Electrical/SineVoltage.js')
-rw-r--r--js/Electrical/SineVoltage.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index c92aeefc..cd36b471 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -40,11 +40,11 @@ function SineVoltage() {
return options;
}
SineVoltage.prototype.set = function SineVoltage() {
- this.V = parseFloat((arguments[0]["V"]))
- this.ph = parseFloat((arguments[0]["ph"]))
- this.frq = parseFloat((arguments[0]["frq"]))
- this.offset = parseFloat((arguments[0]["offset"]))
- this.start = parseFloat((arguments[0]["start"]))
+ this.V = parseFloat(arguments[0]["V"])
+ this.ph = parseFloat(arguments[0]["ph"])
+ this.frq = parseFloat(arguments[0]["frq"])
+ this.offset = parseFloat(arguments[0]["offset"])
+ this.start = parseFloat(arguments[0]["start"])
this.x = arg1;
graphics = arg1.graphics;
exprs = graphics.exprs;