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/IntegerOp/LOGIC.js | |
parent | f19304a4fe99556c5ddc35024c818d00ffe7e23a (diff) | |
download | sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.gz sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.tar.bz2 sci2js-9b18945e2e2348db85595fb096a1e1eba04f9baf.zip |
remove type from list
Diffstat (limited to 'js/IntegerOp/LOGIC.js')
-rw-r--r-- | js/IntegerOp/LOGIC.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js index 4e1e2c01..a05eadf5 100644 --- a/js/IntegerOp/LOGIC.js +++ b/js/IntegerOp/LOGIC.js @@ -3,17 +3,17 @@ function LOGIC() { LOGIC.prototype.define = function LOGIC() { this.mat = [[0],[0],[0],[1]]; this.model = scicos_model(); - this.model.sim = list(new ScilabString("logic"),new ScilabDouble(4)); + this.model.sim = list(new ScilabString(["logic"]), new ScilabDouble([4])); this.model.in1 = [[1],[1]]; this.model.in2 = [[1],[1]]; - this.model.out = new ScilabDouble(1); - this.model.out2 = new ScilabDouble(1); - this.model.evtin = new ScilabDouble(1); + this.model.out = new ScilabDouble([1]); + this.model.out2 = new ScilabDouble([1]); + this.model.evtin = new ScilabDouble([1]); this.model.intyp = [5,5]; - this.model.outtyp = new ScilabDouble(5); - this.model.opar = list(new ScilabDouble(int8(this.mat))); - this.model.blocktype = new ScilabString("c"); - this.model.firing = new ScilabBoolean(false); + this.model.outtyp = new ScilabDouble([5]); + this.model.opar = list(new ScilabDouble([int8(this.mat)])); + this.model.blocktype = new ScilabString(["c"]); + this.model.firing = new ScilabBoolean([false]); this.model.dep_ut = [true,false]; exprs = [[sci2exp(this.mat)],[sci2exp(0)]]; gr_i = []; @@ -65,7 +65,7 @@ function LOGIC() { if (ok) { graphics.exprs = exprs; this.mat = int8(this.mat); - this.model.opar = list(new ScilabDouble(this.mat)); + this.model.opar = list(new ScilabDouble([this.mat])); this.x.graphics = graphics; this.x.model = this.model; break; |