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/IntegerOp | |
parent | f5bdd141a4fd73a98e98523fb6531d48ed5d9904 (diff) | |
download | sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.gz sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.tar.bz2 sci2js-b560ce4b4abb5450dce9a06a7bcddde3b96c1e2c.zip |
support single option blocks
Diffstat (limited to 'js/IntegerOp')
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 5 | ||||
-rw-r--r-- | js/IntegerOp/SRFLIPFLOP.js | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index 493293e2..2b4aaead 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -52,7 +52,10 @@ function JKFLIPFLOP() { return this.x; } JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { - alert("parameters cannot be modified"); + var options = { + init:["Initial Value",this.init], + } + return options; } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index 428b23f0..60c00675 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -36,7 +36,10 @@ function SRFLIPFLOP() { return this.x; } SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { - alert("parameters cannot be modified"); + var options = { + init:["Initial Value",this.init], + } + return options; } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { |