diff options
author | Sunil Shetye | 2018-08-22 21:18:08 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-24 10:42:26 +0530 |
commit | b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c (patch) | |
tree | dafb1774870089a6754d5b1190c45c37b4a036d6 /js/Electrical/Resistor.js | |
parent | f5bdd141a4fd73a98e98523fb6531d48ed5d9904 (diff) | |
download | sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.gz sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.bz2 sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.zip |
support single option blocks
Diffstat (limited to 'js/Electrical/Resistor.js')
-rw-r--r-- | js/Electrical/Resistor.js | 5 |
1 files changed, 4 insertions, 1 deletions
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; |