summaryrefslogtreecommitdiff
path: root/js/Events/MFCLCK_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Events/MFCLCK_f.js')
-rw-r--r--js/Events/MFCLCK_f.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Events/MFCLCK_f.js b/js/Events/MFCLCK_f.js
index b20c23d7..26f05135 100644
--- a/js/Events/MFCLCK_f.js
+++ b/js/Events/MFCLCK_f.js
@@ -13,9 +13,9 @@ function MFCLCK_f() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([-1,0]);
this.model.dep_ut = new ScilabBoolean([false,false]);
- this.exprs = [[string(this.dt)],[string(this.nn)]];
- this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
- this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(this.exprs),this.gr_i);
+ var exprs = [[string(this.dt)],[string(this.nn)]];
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"MFCLCK_f\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(exprs),gr_i);
return new BasicBlock(this.x);
}
MFCLCK_f.prototype.details = function MFCLCK_f() {
@@ -29,7 +29,7 @@ function MFCLCK_f() {
return options;
}
MFCLCK_f.prototype.set = function MFCLCK_f() {
- this.exprs = this.graphics.exprs;
+ var exprs = this.graphics.exprs;
var ok = true;
this.dt = parseFloat(arguments[0]["dt"]);
this.nn = parseFloat(arguments[0]["nn"]);
@@ -39,7 +39,7 @@ function MFCLCK_f() {
var hh = this.model.firing;
hh[2-1] = 0;
this.model.firing = new ScilabDouble(hh);
- this.graphics.exprs = new ScilabDouble([this.exprs]);
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
}