summaryrefslogtreecommitdiff
path: root/js/Misc
diff options
context:
space:
mode:
authorSunil Shetye2018-07-17 12:01:51 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit0b627cfc50bb740a3a3f110285253e4f404e012f (patch)
treead0f68f5fe8aac76706b72487b938c74f771b8d7 /js/Misc
parent8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (diff)
downloadsci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.tar.gz
sci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.tar.bz2
sci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.zip
handle case when there are no options
Diffstat (limited to 'js/Misc')
-rw-r--r--js/Misc/AUTOMAT.js4
-rw-r--r--js/Misc/CONSTRAINT_c.js4
-rw-r--r--js/Misc/DEBUG.js4
-rw-r--r--js/Misc/DEBUG_SCICOS.js4
-rw-r--r--js/Misc/DSUPER.js4
-rw-r--r--js/Misc/EDGE_TRIGGER.js4
-rw-r--r--js/Misc/ENDBLK.js4
-rw-r--r--js/Misc/Extract_Activation.js4
-rw-r--r--js/Misc/IMPSPLIT_f.js4
-rw-r--r--js/Misc/MPBLOCK.js4
-rw-r--r--js/Misc/PAL_f.js4
-rw-r--r--js/Misc/SPLIT_f.js4
-rw-r--r--js/Misc/SUPER_f.js4
-rw-r--r--js/Misc/func_block.js4
14 files changed, 14 insertions, 42 deletions
diff --git a/js/Misc/AUTOMAT.js b/js/Misc/AUTOMAT.js
index 1e8806bb..998df738 100644
--- a/js/Misc/AUTOMAT.js
+++ b/js/Misc/AUTOMAT.js
@@ -31,9 +31,7 @@ function AUTOMAT() {
return this.x;
}
AUTOMAT.prototype.get = function AUTOMAT() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
AUTOMAT.prototype.set = function AUTOMAT() {
this.exprs = this.graphics.exprs;
diff --git a/js/Misc/CONSTRAINT_c.js b/js/Misc/CONSTRAINT_c.js
index c372580e..7efe931c 100644
--- a/js/Misc/CONSTRAINT_c.js
+++ b/js/Misc/CONSTRAINT_c.js
@@ -19,9 +19,7 @@ function CONSTRAINT_c() {
return this.x;
}
CONSTRAINT_c.prototype.get = function CONSTRAINT_c() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
CONSTRAINT_c.prototype.set = function CONSTRAINT_c() {
this.exprs = this.graphics.exprs;
diff --git a/js/Misc/DEBUG.js b/js/Misc/DEBUG.js
index 9aed1d05..e24992a4 100644
--- a/js/Misc/DEBUG.js
+++ b/js/Misc/DEBUG.js
@@ -13,9 +13,7 @@ function DEBUG() {
return this.x;
}
DEBUG.prototype.get = function DEBUG() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
DEBUG.prototype.set = function DEBUG() {
this.exprs = this.graphics.exprs;
diff --git a/js/Misc/DEBUG_SCICOS.js b/js/Misc/DEBUG_SCICOS.js
index d30188c8..ecb3e0ae 100644
--- a/js/Misc/DEBUG_SCICOS.js
+++ b/js/Misc/DEBUG_SCICOS.js
@@ -8,9 +8,7 @@ function DEBUG_SCICOS() {
return this.x;
}
DEBUG_SCICOS.prototype.get = function DEBUG_SCICOS() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
DEBUG_SCICOS.prototype.set = function DEBUG_SCICOS() {
this.x = tmpvar0[0];
diff --git a/js/Misc/DSUPER.js b/js/Misc/DSUPER.js
index cb3364e8..aefaa9fa 100644
--- a/js/Misc/DSUPER.js
+++ b/js/Misc/DSUPER.js
@@ -7,9 +7,7 @@ function DSUPER() {
return this.x;
}
DSUPER.prototype.get = function DSUPER() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
DSUPER.prototype.set = function DSUPER() {
var y = this.needcompile;
diff --git a/js/Misc/EDGE_TRIGGER.js b/js/Misc/EDGE_TRIGGER.js
index 0faafe7f..4d6ece5d 100644
--- a/js/Misc/EDGE_TRIGGER.js
+++ b/js/Misc/EDGE_TRIGGER.js
@@ -85,9 +85,7 @@ function EDGE_TRIGGER() {
return this.x;
}
EDGE_TRIGGER.prototype.get = function EDGE_TRIGGER() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
EDGE_TRIGGER.prototype.set = function EDGE_TRIGGER() {
if (typeof(o)=="Block"&&o.gui=="EDGETRIGGER") {
diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js
index a173fddf..58327da8 100644
--- a/js/Misc/ENDBLK.js
+++ b/js/Misc/ENDBLK.js
@@ -13,9 +13,7 @@ function ENDBLK() {
return this.x;
}
ENDBLK.prototype.get = function ENDBLK() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
ENDBLK.prototype.set = function ENDBLK() {
if (typeof(o)=="Block"&&o.gui=="END_c") {
diff --git a/js/Misc/Extract_Activation.js b/js/Misc/Extract_Activation.js
index e42bbd03..878cc276 100644
--- a/js/Misc/Extract_Activation.js
+++ b/js/Misc/Extract_Activation.js
@@ -90,9 +90,7 @@ function Extract_Activation() {
return this.x;
}
Extract_Activation.prototype.get = function Extract_Activation() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
Extract_Activation.prototype.set = function Extract_Activation() {
return new BasicBlock(this.x);
diff --git a/js/Misc/IMPSPLIT_f.js b/js/Misc/IMPSPLIT_f.js
index e9bfaa98..70a28349 100644
--- a/js/Misc/IMPSPLIT_f.js
+++ b/js/Misc/IMPSPLIT_f.js
@@ -19,9 +19,7 @@ function IMPSPLIT_f() {
return this.x;
}
IMPSPLIT_f.prototype.get = function IMPSPLIT_f() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
IMPSPLIT_f.prototype.set = function IMPSPLIT_f() {
return new BasicBlock(this.x);
diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js
index a089a56e..97a9a895 100644
--- a/js/Misc/MPBLOCK.js
+++ b/js/Misc/MPBLOCK.js
@@ -36,9 +36,7 @@ function MPBLOCK() {
return this.x;
}
MPBLOCK.prototype.get = function MPBLOCK() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
MPBLOCK.prototype.set = function MPBLOCK() {
this.exprs = this.graphics.exprs;
diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js
index f4d7bf06..e9469134 100644
--- a/js/Misc/PAL_f.js
+++ b/js/Misc/PAL_f.js
@@ -19,9 +19,7 @@ function PAL_f() {
return this.x;
}
PAL_f.prototype.get = function PAL_f() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
PAL_f.prototype.set = function PAL_f() {
this.x = tmpvar0[0];
diff --git a/js/Misc/SPLIT_f.js b/js/Misc/SPLIT_f.js
index 25a77818..55f148eb 100644
--- a/js/Misc/SPLIT_f.js
+++ b/js/Misc/SPLIT_f.js
@@ -14,9 +14,7 @@ function SPLIT_f() {
return this.x;
}
SPLIT_f.prototype.get = function SPLIT_f() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
SPLIT_f.prototype.set = function SPLIT_f() {
return new BasicBlock(this.x);
diff --git a/js/Misc/SUPER_f.js b/js/Misc/SUPER_f.js
index f7ed1507..a566e3fa 100644
--- a/js/Misc/SUPER_f.js
+++ b/js/Misc/SUPER_f.js
@@ -26,9 +26,7 @@ function SUPER_f() {
return this.x;
}
SUPER_f.prototype.get = function SUPER_f() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
SUPER_f.prototype.set = function SUPER_f() {
return new SuperBlock(this.x);
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index f21a5066..51696162 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -16,9 +16,7 @@ function func_block() {
return this.x;
}
func_block.prototype.get = function func_block() {
- var options = {
- }
- return options;
+ alert("parameters cannot be modified");
}
func_block.prototype.set = function func_block() {
this.exprs = this.graphics.exprs;