From 0b627cfc50bb740a3a3f110285253e4f404e012f Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 17 Jul 2018 12:01:51 +0530 Subject: handle case when there are no options --- js/Branching/SELF_SWITCH.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js/Branching/SELF_SWITCH.js') diff --git a/js/Branching/SELF_SWITCH.js b/js/Branching/SELF_SWITCH.js index ff749abe..0fb28e7d 100644 --- a/js/Branching/SELF_SWITCH.js +++ b/js/Branching/SELF_SWITCH.js @@ -26,9 +26,7 @@ function SELF_SWITCH() { return this.x; } SELF_SWITCH.prototype.get = function SELF_SWITCH() { - var options = { - } - return options; + alert("parameters cannot be modified"); } SELF_SWITCH.prototype.set = function SELF_SWITCH() { this.stateOpen = this.x.model.opar[1-1]; -- cgit