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.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/Events/EVTVARDLY.js b/js/Events/EVTVARDLY.js
index 3c2f451b..8b95fda9 100644
--- a/js/Events/EVTVARDLY.js
+++ b/js/Events/EVTVARDLY.js
@@ -10,9 +10,9 @@ function EVTVARDLY() {
this.model.firing = new ScilabDouble([-1]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabDouble([true,false]);
- var exprs = string(this.model.firing);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTVARDLY\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,exprs,gr_i);
+ this.exprs = string(this.model.firing);
+ this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTVARDLY\",sz(1),sz(2));"]);
+ this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
return new BasicBlock(this.x);
}
EVTVARDLY.prototype.details = function EVTVARDLY() {
@@ -25,16 +25,17 @@ function EVTVARDLY() {
}
EVTVARDLY.prototype.set = function EVTVARDLY() {
this.fir = arguments[0]["fir"]
+ this.exprs = arguments[0]["exprs"]
this.x = arg1;
this.graphics = arg1.graphics;
- var exprs = this.graphics.exprs;
+ this.exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
- [ok,this.fir,exprs] = scicos_getvalue("Set parameter of variable event delay","Initial event firing time (<0 if absent)",list("vec",1),exprs);
+ [ok,this.fir,this.exprs] = scicos_getvalue("Set parameter of variable event delay","Initial event firing time (<0 if absent)",list("vec",1),this.exprs);
if (!ok) {
break;
}
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.model.firing = new ScilabDouble([this.fir]);
this.x.graphics = this.graphics;
this.x.model = this.model;