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/IntegerOp/SRFLIPFLOP.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'js/IntegerOp/SRFLIPFLOP.js') diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index 055c87b7..428b23f0 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -36,9 +36,7 @@ function SRFLIPFLOP() { return this.x; } SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { - var options = { - } - return options; + alert("parameters cannot be modified"); } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { -- cgit