summaryrefslogtreecommitdiff
path: root/js/Misc/generic_block2.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-15 00:26:52 +0530
committerSunil Shetye2018-07-15 07:11:58 +0530
commit92f8a251bbaeddf6ec034722a3079d865517d650 (patch)
treefb1b9f51c3456c04c02ac3ab144b65bdd392e98b /js/Misc/generic_block2.js
parentc394c9628cd411c95def024d47f10d953e160ec5 (diff)
downloadsci2js-92f8a251bbaeddf6ec034722a3079d865517d650.tar.gz
sci2js-92f8a251bbaeddf6ec034722a3079d865517d650.tar.bz2
sci2js-92f8a251bbaeddf6ec034722a3079d865517d650.zip
handle boolean differently
Diffstat (limited to 'js/Misc/generic_block2.js')
-rw-r--r--js/Misc/generic_block2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/generic_block2.js b/js/Misc/generic_block2.js
index 2c6a2465..4803ee3b 100644
--- a/js/Misc/generic_block2.js
+++ b/js/Misc/generic_block2.js
@@ -15,7 +15,7 @@ function generic_block2() {
this.model.ipar = new ScilabDouble([]);
this.model.blocktype = new ScilabString(["c"]);
this.model.firing = new ScilabDouble([]);
- this.model.dep_ut = new ScilabDouble([true,false]);
+ this.model.dep_ut = new ScilabBoolean([true,false]);
var label = [[this.function_name],[sci2exp(this.funtyp)],[sci2exp(this.model.in)],[sci2exp(this.model.out)],[sci2exp(this.model.evtin)],[sci2exp(this.model.evtout)],[sci2exp(this.model.state)],[sci2exp(this.model.dstate)],[sci2exp(this.model.rpar)],[sci2exp(this.model.ipar)],[sci2exp(this.model.nmode)],[sci2exp(this.model.nzcross)],[sci2exp(this.model.firing)],["y"],["n"]];
this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"generic_block2\",sz(1),sz(2));"]);
this.x = new standard_define(new ScilabDouble([2,2]),this.model,label,this.gr_i);
@@ -122,7 +122,7 @@ function generic_block2() {
this.model.firing = new ScilabDouble([this.auto0]);
this.model.nzcross = new ScilabDouble([this.nzcr]);
this.model.nmode = new ScilabDouble([this.nmode]);
- this.model.dep_ut = new ScilabDouble(dep_ut);
+ this.model.dep_ut = new ScilabBoolean(dep_ut);
this.graphics.exprs = new ScilabDouble([label]);
break;
}