summaryrefslogtreecommitdiff
path: root/js/Sources/CLKIN_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/CLKIN_f.js')
-rw-r--r--js/Sources/CLKIN_f.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/js/Sources/CLKIN_f.js b/js/Sources/CLKIN_f.js
index 849ee2f2..7d77c8f0 100644
--- a/js/Sources/CLKIN_f.js
+++ b/js/Sources/CLKIN_f.js
@@ -9,8 +9,8 @@ function CLKIN_f() {
this.model.blocktype = new ScilabString(["d"]);
this.model.firing = new ScilabDouble([-1]);
this.model.dep_ut = new ScilabDouble([false,false]);
- var exprs = string(this.prt);
- this.x = standard_define([1,1],this.model,exprs," ");
+ this.exprs = string(this.prt);
+ this.x = standard_define([1,1],this.model,this.exprs," ");
return new BasicBlock(this.x);
}
CLKIN_f.prototype.details = function CLKIN_f() {
@@ -23,13 +23,14 @@ function CLKIN_f() {
}
CLKIN_f.prototype.set = function CLKIN_f() {
this.prt = parseFloat(arguments[0]["prt"])
+ this.exprs = parseFloat(arguments[0]["exprs"])
this.x = arg1;
this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = this.graphics.exprs;
- var exprs = exprs[1-1];
+ this.exprs = this.graphics.exprs;
+ this.exprs = this.exprs[1-1];
while (true) {
- [ok,this.prt,exprs] = scicos_getvalue("Set Event Input block parameters","Port number",list("vec",1),exprs);
+ [ok,this.prt,this.exprs] = scicos_getvalue("Set Event Input block parameters","Port number",list("vec",1),this.exprs);
this.prt = int(this.prt);
if (!ok) {
break;
@@ -40,7 +41,7 @@ function CLKIN_f() {
this.model.ipar = new ScilabDouble([this.prt]);
this.model.evtout = new ScilabDouble([1]);
this.model.firing = new ScilabDouble([-1]);
- this.graphics.exprs = new ScilabDouble([exprs]);
+ this.graphics.exprs = new ScilabDouble([this.exprs]);
this.x.graphics = this.graphics;
this.x.model = this.model;
break;