summaryrefslogtreecommitdiff
path: root/js/Events/EVTVARDLY.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Events/EVTVARDLY.js')
-rw-r--r--js/Events/EVTVARDLY.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Events/EVTVARDLY.js b/js/Events/EVTVARDLY.js
index 941f0a28..1359531e 100644
--- a/js/Events/EVTVARDLY.js
+++ b/js/Events/EVTVARDLY.js
@@ -2,13 +2,13 @@
function EVTVARDLY() {
EVTVARDLY.prototype.define = function EVTVARDLY() {
this.model = scicos_model();
- this.model.sim = list(new ScilabString("evtvardly"),new ScilabDouble(4));
- this.model.in1 = new ScilabDouble(1);
- this.model.evtin = new ScilabDouble(1);
- this.model.evtout = new ScilabDouble(1);
- this.model.blocktype = new ScilabString("d");
- this.model.firing = new ScilabDouble(-1);
- this.model.blocktype = new ScilabString("c");
+ this.model.sim = list(new ScilabString(["evtvardly"]), new ScilabDouble([4]));
+ this.model.in1 = new ScilabDouble([1]);
+ this.model.evtin = new ScilabDouble([1]);
+ this.model.evtout = new ScilabDouble([1]);
+ this.model.blocktype = new ScilabString(["d"]);
+ this.model.firing = new ScilabDouble([-1]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = string(this.model.firing);
gr_i = [];
@@ -35,7 +35,7 @@ function EVTVARDLY() {
break;
}
graphics.exprs = exprs;
- this.model.firing = new ScilabDouble(this.fir);
+ this.model.firing = new ScilabDouble([this.fir]);
this.x.graphics = graphics;
this.x.model = this.model;
break;