summaryrefslogtreecommitdiff
path: root/js/IntegerOp/LOGIC.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/IntegerOp/LOGIC.js')
-rw-r--r--js/IntegerOp/LOGIC.js18
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;