diff options
Diffstat (limited to 'js/Electrical/Switch.js')
-rw-r--r-- | js/Electrical/Switch.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index 3c2e119e..ad7ed43d 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -31,6 +31,8 @@ function Switch() { Switch.prototype.get = function Switch() { } Switch.prototype.set = function Switch() { + this.Ron = parseFloat((arguments[0]["Ron"])) + this.Roff = parseFloat((arguments[0]["Roff"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; |