From b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 22 Aug 2018 21:18:08 +0530 Subject: support single option blocks --- js/Electrical/Resistor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/Electrical/Resistor.js') diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 5c2494b5..fc7188de 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -26,7 +26,10 @@ function Resistor() { return this.x; } Resistor.prototype.get = function Resistor() { - alert("parameters cannot be modified"); + var options = { + R:["R (ohm)",this.R], + } + return options; } Resistor.prototype.set = function Resistor() { this.exprs = this.graphics.exprs; -- cgit