From ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 2 Jul 2018 22:51:03 +0530 Subject: add options block --- js/Electrical/Switch.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/Electrical/Switch.js') diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index ad7ed43d..46e66473 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -29,6 +29,11 @@ function Switch() { return this.x; } Switch.prototype.get = function Switch() { + var options = { + Ron:["Resistance in On state (Ohm)",this.Ron], + Roff:["Resistance in Off state (Ohm)",this.Roff], + } + return options; } Switch.prototype.set = function Switch() { this.Ron = parseFloat((arguments[0]["Ron"])) -- cgit