diff options
Diffstat (limited to 'js/Events/EVTDLY_c.js')
-rw-r--r-- | js/Events/EVTDLY_c.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Events/EVTDLY_c.js b/js/Events/EVTDLY_c.js index 54fca32e..dd014f43 100644 --- a/js/Events/EVTDLY_c.js +++ b/js/Events/EVTDLY_c.js @@ -4,12 +4,12 @@ function EVTDLY_c() { this.dt = 0.1; this.ff = 0.0; this.model = scicos_model(); - this.model.sim = list(new ScilabString("evtdly4"),new ScilabDouble(4)); - this.model.evtin = new ScilabDouble(1); - this.model.evtout = new ScilabDouble(1); + this.model.sim = list(new ScilabString(["evtdly4"]), new ScilabDouble([4])); + this.model.evtin = new ScilabDouble([1]); + this.model.evtout = new ScilabDouble([1]); this.model.rpar = [[this.dt],[this.ff]]; - this.model.blocktype = new ScilabString("d"); - this.model.firing = new ScilabDouble(this.ff); + this.model.blocktype = new ScilabString(["d"]); + this.model.firing = new ScilabDouble([this.ff]); this.model.dep_ut = [false,false]; exprs = [[string(this.dt)],[sci2exp(this.ff)]]; gr_i = []; @@ -45,7 +45,7 @@ function EVTDLY_c() { if (ok) { graphics.exprs = exprs; this.model.rpar = [[this.dt],[this.ff]]; - this.model.firing = new ScilabDouble(this.ff); + this.model.firing = new ScilabDouble([this.ff]); this.x.graphics = graphics; this.x.model = this.model; break; |