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/Misc/generic_block.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'js/Misc/generic_block.js') diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js index ed6cf736..5325cc7e 100644 --- a/js/Misc/generic_block.js +++ b/js/Misc/generic_block.js @@ -43,20 +43,20 @@ function generic_block() { return options; } generic_block.prototype.set = function generic_block() { - this.function_name = parseFloat((arguments[0]["function_name"])) - this.funtyp = parseFloat((arguments[0]["funtyp"])) - this.i = parseFloat((arguments[0]["i"])) - this.o = parseFloat((arguments[0]["o"])) - this.ci = parseFloat((arguments[0]["ci"])) - this.co = parseFloat((arguments[0]["co"])) - this.xx = inverse((arguments[0]["xx"])) - this.z = inverse((arguments[0]["z"])) - this.rpar = inverse((arguments[0]["rpar"])) - this.ipar = parseFloat((arguments[0]["ipar"])) - this.auto0 = parseFloat((arguments[0]["auto0"])) - this.depu = parseBoolean((arguments[0]["depu"])) - this.dept = parseBoolean((arguments[0]["dept"])) - this.lab = parseFloat((arguments[0]["lab"])) + this.function_name = arguments[0]["function_name"] + this.funtyp = parseFloat(arguments[0]["funtyp"]) + this.i = parseFloat(arguments[0]["i"]) + this.o = parseFloat(arguments[0]["o"]) + this.ci = parseFloat(arguments[0]["ci"]) + this.co = parseFloat(arguments[0]["co"]) + this.xx = inverse(arguments[0]["xx"]) + this.z = inverse(arguments[0]["z"]) + this.rpar = inverse(arguments[0]["rpar"]) + this.ipar = parseFloat(arguments[0]["ipar"]) + this.auto0 = arguments[0]["auto0"] + this.depu = parseBoolean(arguments[0]["depu"]) + this.dept = parseBoolean(arguments[0]["dept"]) + this.lab = arguments[0]["lab"] this.x = arg1; model = arg1.model; graphics = arg1.graphics; -- cgit