summaryrefslogtreecommitdiff
path: root/js/Electrical/Switch.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/Switch.js')
-rw-r--r--js/Electrical/Switch.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js
index 2641b80a..4126940c 100644
--- a/js/Electrical/Switch.js
+++ b/js/Electrical/Switch.js
@@ -29,6 +29,8 @@ function Switch() {
return this.x;
}
Switch.prototype.get = function Switch() {
+ var exprs = this.graphics.exprs;
+ this.set_param_popup_title = "Set non-ideal electrical switch parameters";
var options = {
Ron:["Resistance in On state (Ohm)",this.Ron],
Roff:["Resistance in Off state (Ohm)",this.Roff],
@@ -54,7 +56,6 @@ function Switch() {
return new BasicBlock(this.x);
}
Switch.prototype.get_popup_title = function Switch() {
- var set_param_popup_title = "Set non-ideal electrical switch parameters";
- return set_param_popup_title;
+ return this.set_param_popup_title;
}
}