From f389f174481df676c841ebcc87a7b8b313921bbc Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 17 Sep 2018 16:11:31 +0530 Subject: add importset and getContainer to combined.js --- js/Electrical/Switch.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/Electrical/Switch.js') diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index 4126940c..4e9f289a 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -58,4 +58,11 @@ function Switch() { Switch.prototype.get_popup_title = function Switch() { return this.set_param_popup_title; } + Switch.prototype.importset = function Switch() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Ron = ary[0]; + this.Roff = ary[1]; + } + Switch.prototype.getContainer = function Switch() { return new BasicBlock(this.x); } } -- cgit