From 352623792d2b9400510599c487540b1e763a7d3c Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 29 Aug 2018 10:48:12 +0530 Subject: add the common code to get method also type is a function get the popup title from the value set in the get method --- js/Branching/SWITCH_f.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/Branching/SWITCH_f.js') diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js index 85d5a05f..32240dfd 100644 --- a/js/Branching/SWITCH_f.js +++ b/js/Branching/SWITCH_f.js @@ -21,6 +21,9 @@ function SWITCH_f() { return this.x; } SWITCH_f.prototype.get = function SWITCH_f() { + var exprs = this.graphics.exprs; + var ipar = this.model.ipar; + this.set_param_popup_title = "Set switch parameters"; var options = { nin:["number of inputs",this.nin], z0:["connected input",this.z0], @@ -58,7 +61,6 @@ function SWITCH_f() { return new BasicBlock(this.x); } SWITCH_f.prototype.get_popup_title = function SWITCH_f() { - var set_param_popup_title = "Set switch parameters"; - return set_param_popup_title; + return this.set_param_popup_title; } } -- cgit