diff options
author | Sunil Shetye | 2018-08-22 21:18:08 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-24 10:42:26 +0530 |
commit | b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c (patch) | |
tree | dafb1774870089a6754d5b1190c45c37b4a036d6 /js/Sinks | |
parent | f5bdd141a4fd73a98e98523fb6531d48ed5d9904 (diff) | |
download | sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.gz sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.bz2 sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.zip |
support single option blocks
Diffstat (limited to 'js/Sinks')
-rw-r--r-- | js/Sinks/CLKOUTV_f.js | 5 | ||||
-rw-r--r-- | js/Sinks/CLKOUT_f.js | 5 | ||||
-rw-r--r-- | js/Sinks/OUTIMPL_f.js | 5 | ||||
-rw-r--r-- | js/Sinks/OUT_f.js | 5 |
4 files changed, 16 insertions, 4 deletions
diff --git a/js/Sinks/CLKOUTV_f.js b/js/Sinks/CLKOUTV_f.js index 08e77e1f..ecf86c06 100644 --- a/js/Sinks/CLKOUTV_f.js +++ b/js/Sinks/CLKOUTV_f.js @@ -17,7 +17,10 @@ function CLKOUTV_f() { return this.x; } CLKOUTV_f.prototype.get = function CLKOUTV_f() { - alert("parameters cannot be modified"); + var options = { + prt:["Port number",this.prt], + } + return options; } CLKOUTV_f.prototype.set = function CLKOUTV_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/CLKOUT_f.js b/js/Sinks/CLKOUT_f.js index 96212275..88ec4ea3 100644 --- a/js/Sinks/CLKOUT_f.js +++ b/js/Sinks/CLKOUT_f.js @@ -17,7 +17,10 @@ function CLKOUT_f() { return this.x; } CLKOUT_f.prototype.get = function CLKOUT_f() { - alert("parameters cannot be modified"); + var options = { + prt:["Port number",this.prt], + } + return options; } CLKOUT_f.prototype.set = function CLKOUT_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/OUTIMPL_f.js b/js/Sinks/OUTIMPL_f.js index 1e473d2d..3ffe67be 100644 --- a/js/Sinks/OUTIMPL_f.js +++ b/js/Sinks/OUTIMPL_f.js @@ -23,7 +23,10 @@ function OUTIMPL_f() { return this.x; } OUTIMPL_f.prototype.get = function OUTIMPL_f() { - alert("parameters cannot be modified"); + var options = { + prt:["Port number",this.prt], + } + return options; } OUTIMPL_f.prototype.set = function OUTIMPL_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/OUT_f.js b/js/Sinks/OUT_f.js index c4f898ff..e578c791 100644 --- a/js/Sinks/OUT_f.js +++ b/js/Sinks/OUT_f.js @@ -20,7 +20,10 @@ function OUT_f() { return this.x; } OUT_f.prototype.get = function OUT_f() { - alert("parameters cannot be modified"); + var options = { + prt:["Port number",this.prt], + } + return options; } OUT_f.prototype.set = function OUT_f() { this.exprs = this.graphics.exprs; |