From 5a28e41a3105338f747b8a30f67000920490c67d Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Fri, 6 Jul 2018 10:38:38 +0530 Subject: make string as the default type --- js/Electrical/SineVoltage.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js/Electrical/SineVoltage.js') 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; -- cgit