summaryrefslogtreecommitdiff
path: root/js/Events/HALT_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Events/HALT_f.js')
-rw-r--r--js/Events/HALT_f.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Events/HALT_f.js b/js/Events/HALT_f.js
index 408678a0..d9e2d28d 100644
--- a/js/Events/HALT_f.js
+++ b/js/Events/HALT_f.js
@@ -1,7 +1,7 @@
/* autogenerated from "macros/Events/HALT_f.sci" */
function HALT_f() {
HALT_f.prototype.define = function HALT_f() {
- n = 0;
+ this.n = 0;
model = scicos_model();
model.sim = "hltblk";
model.evtin = 1;
@@ -9,7 +9,7 @@ function HALT_f() {
model.ipar = 0;
model.blocktype = "d";
model.dep_ut = [false,false];
- exprs = string(n);
+ exprs = string(this.n);
gr_i = [];
this.x = standard_define([2,2],model,exprs,gr_i);
return new BasicBlock(this.x);
@@ -25,13 +25,13 @@ function HALT_f() {
exprs = graphics.exprs;
model = arg1.model;
while (true) {
- [ok,n,exprs] = scicos_getvalue("Set Halt block parameters",["State on halt"],list("vec",1),exprs);
+ [ok,this.n,exprs] = scicos_getvalue("Set Halt block parameters",["State on halt"],list("vec",1),exprs);
if (!ok) {
break;
}
if (ok) {
graphics.exprs = exprs;
- model.ipar = n;
+ model.ipar = this.n;
this.x.graphics = graphics;
this.x.model = model;
break;