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.js23
1 files changed, 12 insertions, 11 deletions
diff --git a/js/Events/MFCLCK_f.js b/js/Events/MFCLCK_f.js
index 9e5fa63f..1dbc294f 100644
--- a/js/Events/MFCLCK_f.js
+++ b/js/Events/MFCLCK_f.js
@@ -15,27 +15,28 @@ function MFCLCK_f() {
model.dep_ut = [false,false];
exprs = [[string(dt)],[string(nn)]];
gr_i = [];
- x = standard_define([3,2],model,exprs,gr_i);
+ this.x = standard_define([3,2],model,exprs,gr_i);
}
MFCLCK_f.prototype.details = function MFCLCK_f() {
+ return this.x;
}
MFCLCK_f.prototype.get = function MFCLCK_f() {
}
MFCLCK_f.prototype.set = function MFCLCK_f() {
- x = arg1;
+ this.x = arg1;
graphics = arg1.graphics;
exprs = graphics.exprs;
model = arg1.model;
[ok,dt,nn,exprs] = scicos_getvalue("Set Multifrequency clock parameters",[["basic period (1/f)"],["multiply by (n)"]],list("vec",1,"vec",1),exprs);
if (ok) {
- model.ipar = nn;
- model.rpar = dt;
- hh = model.firing;
- hh[2-1] = 0;
- model.firing = hh;
- graphics.exprs = exprs;
- x.graphics = graphics;
- x.model = model;
-}
+ model.ipar = nn;
+ model.rpar = dt;
+ hh = model.firing;
+ hh[2-1] = 0;
+ model.firing = hh;
+ graphics.exprs = exprs;
+ this.x.graphics = graphics;
+ this.x.model = model;
+ }
}
}