summaryrefslogtreecommitdiff
path: root/js/Misc/func_block.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 12:08:19 +0530
committerSunil Shetye2018-06-26 12:08:19 +0530
commitafed64f1a0eab0b2d742088186d7bc340a2c895b (patch)
tree7270fd2e6c53e6df90c71e2fcbccd8149c3553a5 /js/Misc/func_block.js
parent7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (diff)
downloadsci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.gz
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.bz2
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.zip
return block type in define and set
Diffstat (limited to 'js/Misc/func_block.js')
-rw-r--r--js/Misc/func_block.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index d8083f99..f66d74a6 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -10,6 +10,7 @@ function func_block() {
exprs = "v=sin(u);y=u*v";
gr_i = [];
this.x = standard_define([2,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
func_block.prototype.details = function func_block() {
return this.x;
@@ -29,5 +30,6 @@ function func_block() {
this.x.model = model;
this.x.graphics = graphics;
}
+ return new BasicBlock(this.x);
}
}