summaryrefslogtreecommitdiff
path: root/js/Misc/MPBLOCK.js
diff options
context:
space:
mode:
authorSunil Shetye2018-08-29 10:48:12 +0530
committerSunil Shetye2018-08-29 18:03:04 +0530
commit352623792d2b9400510599c487540b1e763a7d3c (patch)
tree7711522f3fcd42a9d5f22b9fa3328763452a6918 /js/Misc/MPBLOCK.js
parent17a1beeeae647a6fbd0904a5d794ce7754df7eb2 (diff)
downloadsci2js-352623792d2b9400510599c487540b1e763a7d3c.tar.gz
sci2js-352623792d2b9400510599c487540b1e763a7d3c.tar.bz2
sci2js-352623792d2b9400510599c487540b1e763a7d3c.zip
add the common code to get method also
type is a function get the popup title from the value set in the get method
Diffstat (limited to 'js/Misc/MPBLOCK.js')
-rw-r--r--js/Misc/MPBLOCK.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js
index 7afd3924..fc44e9c0 100644
--- a/js/Misc/MPBLOCK.js
+++ b/js/Misc/MPBLOCK.js
@@ -40,7 +40,7 @@ function MPBLOCK() {
}
MPBLOCK.prototype.set = function MPBLOCK() {
var exprs = this.graphics.exprs;
- if (this.type[exprs-1]==15) {
+ if (type(exprs)==15) {
var paramv = list();
var pprop = [];
for (i=1;i<=size(this.model.rpar,"*");i+=1) {
@@ -254,7 +254,7 @@ function MPBLOCK() {
exprs.param = lab_1[5-1];
exprs.paramv = list();
if (Tparam_sz!=0) {
- if (this.type[lab_2-1]==15) {
+ if (type(lab_2)==15) {
for (i=1;i<=lstsize(lab_2);i+=1) {
exprs.paramv[i-1] = lab_2[i-1];
}
@@ -279,7 +279,6 @@ function MPBLOCK() {
return new BasicBlock(this.x);
}
MPBLOCK.prototype.get_popup_title = function MPBLOCK() {
- var set_param_popup_title = "Set parameters";
- return set_param_popup_title;
+ return;
}
}