diff options
Diffstat (limited to 'js/Misc/generic_block.js')
-rw-r--r-- | js/Misc/generic_block.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js index a7cf464a..075b2906 100644 --- a/js/Misc/generic_block.js +++ b/js/Misc/generic_block.js @@ -4,7 +4,7 @@ function generic_block() { this.model = scicos_model(); this.function_name = "sinblk"; this.funtyp = 1; - this.model.sim = list(this.function_name,this.funtyp); + this.model.sim = list(new ScilabString(this.function_name),new ScilabDouble(this.funtyp)); this.model.in1 = new ScilabDouble(1); this.model.out = new ScilabDouble(1); this.model.evtin = []; @@ -110,7 +110,7 @@ function generic_block() { if (this.funtyp==3) { needcompile = 4; } - this.model.sim = list(this.function_name,this.funtyp); + this.model.sim = list(new ScilabDouble(this.function_name),new ScilabDouble(this.funtyp)); this.model.state = this.xx; this.model.dstate = this.z; this.model.rpar = this.rpar; |