diff options
author | Sunil Shetye | 2018-07-09 18:10:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | 9b18945e2e2348db85595fb096a1e1eba04f9baf (patch) | |
tree | bb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Sources/Modulo_Count.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/Sources/Modulo_Count.js')
-rw-r--r-- | js/Sources/Modulo_Count.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Sources/Modulo_Count.js b/js/Sources/Modulo_Count.js index a01089c5..7c161252 100644 --- a/js/Sources/Modulo_Count.js +++ b/js/Sources/Modulo_Count.js @@ -4,12 +4,12 @@ function Modulo_Count() { this.ini_c = 0; this.base = 3; this.model = scicos_model(); - this.model.sim = list(new ScilabString("modulo_count"),new ScilabDouble(4)); - this.model.evtin = new ScilabDouble(1); - this.model.out = new ScilabDouble(1); - this.model.dstate = new ScilabDouble(this.ini_c); - this.model.ipar = new ScilabDouble(this.base); - this.model.blocktype = new ScilabString("c"); + this.model.sim = list(new ScilabString(["modulo_count"]), new ScilabDouble([4])); + this.model.evtin = new ScilabDouble([1]); + this.model.out = new ScilabDouble([1]); + this.model.dstate = new ScilabDouble([this.ini_c]); + this.model.ipar = new ScilabDouble([this.base]); + this.model.blocktype = new ScilabString(["c"]); this.model.dep_ut = [false,false]; exprs = [[string(this.ini_c)],[string(this.base)]]; gr_i = []; @@ -46,8 +46,8 @@ function Modulo_Count() { block_parameter_error(msprintf("Wrong values for \'Upper Limit\' parameter: %d.",this.base),"Strictly positive integer expected."); } else { graphics.exprs = exprs; - this.model.ipar = new ScilabDouble(this.base); - this.model.dstate = new ScilabDouble(this.ini_c); + this.model.ipar = new ScilabDouble([this.base]); + this.model.dstate = new ScilabDouble([this.ini_c]); this.x.graphics = graphics; this.x.model = this.model; break; |