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.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index 9beb288c..52a8a30a 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -2,10 +2,10 @@
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.out = new ScilabDouble(1);
- this.model.blocktype = new ScilabString("c");
+ this.model.sim = new ScilabString([" "]);
+ this.model.in1 = new ScilabDouble([1]);
+ this.model.out = new ScilabDouble([1]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = "v=sin(u);y=u*v";
gr_i = [];
@@ -28,7 +28,7 @@ function func_block() {
this.model = this.x.model;
[ok,mac,exprs] = this.genfunc[exprs-1];
if (ok) {
- this.model.sim = new ScilabDouble(mac);
+ this.model.sim = new ScilabDouble([mac]);
graphics.exprs = exprs;
this.x.model = this.model;
this.x.graphics = graphics;