summaryrefslogtreecommitdiff
path: root/js/Electrical/ConstantVoltage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/ConstantVoltage.js')
-rw-r--r--js/Electrical/ConstantVoltage.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js
index d1a1efb9..c37c72e6 100644
--- a/js/Electrical/ConstantVoltage.js
+++ b/js/Electrical/ConstantVoltage.js
@@ -54,4 +54,10 @@ function ConstantVoltage() {
ConstantVoltage.prototype.get_popup_title = function ConstantVoltage() {
return this.set_param_popup_title;
}
+ ConstantVoltage.prototype.importset = function ConstantVoltage() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.V = ary[0];
+ }
+ ConstantVoltage.prototype.getContainer = function ConstantVoltage() { return new BasicBlock(this.x); }
}