summaryrefslogtreecommitdiff
path: root/js/Misc/func_block.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/func_block.js')
-rw-r--r--js/Misc/func_block.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index 20190ebe..5c35f244 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -3,7 +3,7 @@ function func_block() {
func_block.prototype.define = function func_block() {
this.model = scicos_model();
this.model.sim = new ScilabString([" "]);
- this.model.in1 = new ScilabDouble([1]);
+ this.model.in = new ScilabDouble([1]);
this.model.out = new ScilabDouble([1]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
@@ -21,10 +21,7 @@ function func_block() {
return options;
}
func_block.prototype.set = function func_block() {
- this.model = arg1.model;
- this.graphics = arg1.graphics;
this.exprs = this.graphics.exprs;
- this.x = arg1;
this.model = this.x.model;
var tmpvar0 = genfunc(this.exprs);
var ok = tmpvar0[0];