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/Sources/CLKINV_f.js | 4 +--- js/Sources/CLKIN_f.js | 4 +--- js/Sources/CONST.js | 4 +--- js/Sources/CONST_f.js | 4 +--- js/Sources/CONST_m.js | 4 +--- js/Sources/CURV_f.js | 4 +--- js/Sources/FROMWSB.js | 4 +--- js/Sources/GEN_SQR.js | 4 +--- js/Sources/Ground_g.js | 4 +--- js/Sources/INIMPL_f.js | 4 +--- js/Sources/IN_f.js | 4 +--- js/Sources/PULSE_SC.js | 4 +--- js/Sources/SAWTOOTH_f.js | 4 +--- js/Sources/STEP_FUNCTION.js | 4 +--- js/Sources/Sigbuilder.js | 4 +--- js/Sources/TIME_f.js | 4 +--- 16 files changed, 16 insertions(+), 48 deletions(-) (limited to 'js/Sources') diff --git a/js/Sources/CLKINV_f.js b/js/Sources/CLKINV_f.js index c694928c..cc59a0c1 100644 --- a/js/Sources/CLKINV_f.js +++ b/js/Sources/CLKINV_f.js @@ -18,9 +18,7 @@ function CLKINV_f() { return this.x; } CLKINV_f.prototype.get = function CLKINV_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CLKINV_f.prototype.set = function CLKINV_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/CLKIN_f.js b/js/Sources/CLKIN_f.js index 96057474..bdec8727 100644 --- a/js/Sources/CLKIN_f.js +++ b/js/Sources/CLKIN_f.js @@ -17,9 +17,7 @@ function CLKIN_f() { return this.x; } CLKIN_f.prototype.get = function CLKIN_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CLKIN_f.prototype.set = function CLKIN_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index 76661388..6dfc718c 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -18,9 +18,7 @@ function CONST() { return this.x; } CONST.prototype.get = function CONST() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CONST.prototype.set = function CONST() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index c866e463..0ab35b9b 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -18,9 +18,7 @@ function CONST_f() { return this.x; } CONST_f.prototype.get = function CONST_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CONST_f.prototype.set = function CONST_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js index 55c8e3a6..3101caa5 100644 --- a/js/Sources/CONST_m.js +++ b/js/Sources/CONST_m.js @@ -21,9 +21,7 @@ function CONST_m() { return this.x; } CONST_m.prototype.get = function CONST_m() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CONST_m.prototype.set = function CONST_m() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js index 32a9fd29..d8eb53ba 100644 --- a/js/Sources/CURV_f.js +++ b/js/Sources/CURV_f.js @@ -23,9 +23,7 @@ function CURV_f() { return this.x; } CURV_f.prototype.get = function CURV_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CURV_f.prototype.set = function CURV_f() { var rpar = this.model.rpar; diff --git a/js/Sources/FROMWSB.js b/js/Sources/FROMWSB.js index ea9aa8c9..d411920b 100644 --- a/js/Sources/FROMWSB.js +++ b/js/Sources/FROMWSB.js @@ -15,9 +15,7 @@ function FROMWSB() { return this.x; } FROMWSB.prototype.get = function FROMWSB() { - var options = { - } - return options; + alert("parameters cannot be modified"); } FROMWSB.prototype.set = function FROMWSB() { if (typeof(o)=="Block"&&o.gui=="FROMWS_c") { diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index 03aac3aa..b15cc552 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -54,9 +54,7 @@ function GEN_SQR() { return this.x; } GEN_SQR.prototype.get = function GEN_SQR() { - var options = { - } - return options; + alert("parameters cannot be modified"); } GEN_SQR.prototype.set = function GEN_SQR() { var y = this.needcompile; diff --git a/js/Sources/Ground_g.js b/js/Sources/Ground_g.js index 1fe4898b..76eaf9ef 100644 --- a/js/Sources/Ground_g.js +++ b/js/Sources/Ground_g.js @@ -22,9 +22,7 @@ function Ground_g() { return this.x; } Ground_g.prototype.get = function Ground_g() { - var options = { - } - return options; + alert("parameters cannot be modified"); } Ground_g.prototype.set = function Ground_g() { return new BasicBlock(this.x); diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js index 548f42d6..57bb6a3c 100644 --- a/js/Sources/INIMPL_f.js +++ b/js/Sources/INIMPL_f.js @@ -23,9 +23,7 @@ function INIMPL_f() { return this.x; } INIMPL_f.prototype.get = function INIMPL_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } INIMPL_f.prototype.set = function INIMPL_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index 31326a50..96059541 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -19,9 +19,7 @@ function IN_f() { return this.x; } IN_f.prototype.get = function IN_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } IN_f.prototype.set = function IN_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index 6b91077a..27653b01 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -49,9 +49,7 @@ function PULSE_SC() { return this.x; } PULSE_SC.prototype.get = function PULSE_SC() { - var options = { - } - return options; + alert("parameters cannot be modified"); } PULSE_SC.prototype.set = function PULSE_SC() { var y = this.needcompile; diff --git a/js/Sources/SAWTOOTH_f.js b/js/Sources/SAWTOOTH_f.js index 7f975daf..3d40a764 100644 --- a/js/Sources/SAWTOOTH_f.js +++ b/js/Sources/SAWTOOTH_f.js @@ -17,9 +17,7 @@ function SAWTOOTH_f() { return this.x; } SAWTOOTH_f.prototype.get = function SAWTOOTH_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } SAWTOOTH_f.prototype.set = function SAWTOOTH_f() { return new BasicBlock(this.x); diff --git a/js/Sources/STEP_FUNCTION.js b/js/Sources/STEP_FUNCTION.js index bda1f4b5..34c936ad 100644 --- a/js/Sources/STEP_FUNCTION.js +++ b/js/Sources/STEP_FUNCTION.js @@ -55,9 +55,7 @@ function STEP_FUNCTION() { return this.x; } STEP_FUNCTION.prototype.get = function STEP_FUNCTION() { - var options = { - } - return options; + alert("parameters cannot be modified"); } STEP_FUNCTION.prototype.set = function STEP_FUNCTION() { if (typeof(o)=="Block"&&o.gui=="STEP") { diff --git a/js/Sources/Sigbuilder.js b/js/Sources/Sigbuilder.js index b4f130fc..051681b8 100644 --- a/js/Sources/Sigbuilder.js +++ b/js/Sources/Sigbuilder.js @@ -19,9 +19,7 @@ function Sigbuilder() { return this.x; } Sigbuilder.prototype.get = function Sigbuilder() { - var options = { - } - return options; + alert("parameters cannot be modified"); } Sigbuilder.prototype.set = function Sigbuilder() { var ppath = list(0); diff --git a/js/Sources/TIME_f.js b/js/Sources/TIME_f.js index f0b39c13..e0861d58 100644 --- a/js/Sources/TIME_f.js +++ b/js/Sources/TIME_f.js @@ -14,9 +14,7 @@ function TIME_f() { return this.x; } TIME_f.prototype.get = function TIME_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } TIME_f.prototype.set = function TIME_f() { return new BasicBlock(this.x); -- cgit