summaryrefslogtreecommitdiff
path: root/js/Sources/CONST.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 18:10:31 +0530
committerSunil Shetye2018-07-10 11:24:53 +0530
commit9b18945e2e2348db85595fb096a1e1eba04f9baf (patch)
treebb13cffc501f152b1d33870bdeff6f274aecbf7b /js/Sources/CONST.js
parentf19304a4fe99556c5ddc35024c818d00ffe7e23a (diff)
downloadsci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2
sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip
remove type from list
Diffstat (limited to 'js/Sources/CONST.js')
-rw-r--r--js/Sources/CONST.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js
index 2c9dae8a..f42bf2cf 100644
--- a/js/Sources/CONST.js
+++ b/js/Sources/CONST.js
@@ -3,11 +3,11 @@ function CONST() {
CONST.prototype.define = function CONST() {
this.C = 1;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("cstblk4"),new ScilabDouble(4));
+ this.model.sim = list(new ScilabString(["cstblk4"]), new ScilabDouble([4]));
this.model.in1 = [];
- this.model.out = new ScilabDouble(1);
- this.model.rpar = new ScilabDouble(this.C);
- this.model.blocktype = new ScilabString("d");
+ this.model.out = new ScilabDouble([1]);
+ this.model.rpar = new ScilabDouble([this.C]);
+ this.model.blocktype = new ScilabString(["d"]);
this.model.dep_ut = [false,false];
exprs = strcat(sci2exp(this.C));
gr_i = [];
@@ -41,7 +41,7 @@ function CONST() {
message("C matrix is not supported, use CONST_m instead");
} else {
this.model.rpar = this.C.slice();
- this.model.out = new ScilabDouble(nout);
+ this.model.out = new ScilabDouble([nout]);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;