summaryrefslogtreecommitdiff
path: root/js/Misc/EDGETRIGGER.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Misc/EDGETRIGGER.js')
-rw-r--r--js/Misc/EDGETRIGGER.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js
index 5ecdcb0a..54bc5ecf 100644
--- a/js/Misc/EDGETRIGGER.js
+++ b/js/Misc/EDGETRIGGER.js
@@ -3,13 +3,13 @@ function EDGETRIGGER() {
EDGETRIGGER.prototype.define = function EDGETRIGGER() {
this.edge = 1;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("edgetrig"),new ScilabDouble(4));
- this.model.in1 = new ScilabDouble(1);
- this.model.out = new ScilabDouble(1);
- this.model.dstate = new ScilabDouble(0);
- this.model.nzcross = new ScilabDouble(1);
- this.model.ipar = new ScilabDouble(sign(this.edge));
- this.model.blocktype = new ScilabString("c");
+ this.model.sim = list(new ScilabString(["edgetrig"]), new ScilabDouble([4]));
+ this.model.in1 = new ScilabDouble([1]);
+ this.model.out = new ScilabDouble([1]);
+ this.model.dstate = new ScilabDouble([0]);
+ this.model.nzcross = new ScilabDouble([1]);
+ this.model.ipar = new ScilabDouble([sign(this.edge)]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [string(this.edge)];
gr_i = [];
@@ -36,7 +36,7 @@ function EDGETRIGGER() {
if (!ok) {
break;
}
- this.model.ipar = new ScilabDouble(sign(this.edge));
+ this.model.ipar = new ScilabDouble([sign(this.edge)]);
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = this.model;