summaryrefslogtreecommitdiff
path: root/js/IntegerOp
diff options
context:
space:
mode:
Diffstat (limited to 'js/IntegerOp')
-rw-r--r--js/IntegerOp/DFLIPFLOP.js4
-rw-r--r--js/IntegerOp/DLATCH.js4
-rw-r--r--js/IntegerOp/JKFLIPFLOP.js4
-rw-r--r--js/IntegerOp/SRFLIPFLOP.js4
4 files changed, 4 insertions, 12 deletions
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js
index 7a0219c8..33c1721b 100644
--- a/js/IntegerOp/DFLIPFLOP.js
+++ b/js/IntegerOp/DFLIPFLOP.js
@@ -96,9 +96,7 @@ function DFLIPFLOP() {
return this.x;
}
DFLIPFLOP.prototype.get = function DFLIPFLOP() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
DFLIPFLOP.prototype.set = function DFLIPFLOP() {
return new BasicBlock(this.x);
diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js
index da4d72f4..2f7a70d9 100644
--- a/js/IntegerOp/DLATCH.js
+++ b/js/IntegerOp/DLATCH.js
@@ -41,9 +41,7 @@ function DLATCH() {
return this.x;
}
DLATCH.prototype.get = function DLATCH() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
DLATCH.prototype.set = function DLATCH() {
return new BasicBlock(this.x);
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js
index 026a75ab..493293e2 100644
--- a/js/IntegerOp/JKFLIPFLOP.js
+++ b/js/IntegerOp/JKFLIPFLOP.js
@@ -52,9 +52,7 @@ function JKFLIPFLOP() {
return this.x;
}
JKFLIPFLOP.prototype.get = function JKFLIPFLOP() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
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 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") {