summaryrefslogtreecommitdiff
path: root/js/Branching/SCALAR2VECTOR.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SCALAR2VECTOR.js')
-rw-r--r--js/Branching/SCALAR2VECTOR.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js
index e849edef..2ca90c29 100644
--- a/js/Branching/SCALAR2VECTOR.js
+++ b/js/Branching/SCALAR2VECTOR.js
@@ -1,14 +1,14 @@
/* autogenerated from "macros/Branching/SCALAR2VECTOR.sci" */
function SCALAR2VECTOR() {
SCALAR2VECTOR.prototype.define = function SCALAR2VECTOR() {
- nout = -1;
+ this.nout = -1;
model = scicos_model();
model.sim = list("scalar2vector",4);
- model.out = nout;
+ model.out = this.nout;
model.in1 = 1;
model.blocktype = "c";
model.dep_ut = [true,false];
- exprs = [string([nout])];
+ exprs = [string([this.nout])];
gr_i = [];
this.x = standard_define([3,2],model,exprs,gr_i);
return new BasicBlock(this.x);
@@ -24,17 +24,17 @@ function SCALAR2VECTOR() {
exprs = graphics.exprs;
model = arg1.model;
while (true) {
- [ok,nout,exprs] = scicos_getvalue("Set block parameters",["size of output (-1: if don\'t know)"],list("vec",1),exprs);
+ [ok,this.nout,exprs] = scicos_getvalue("Set block parameters",["size of output (-1: if don\'t know)"],list("vec",1),exprs);
if (!ok) {
break;
}
- nout = int(nout);
- if ((nout!=-1&&(nout<=0))) {
+ this.nout = int(this.nout);
+ if ((this.nout!=-1&&(this.nout<=0))) {
message("size of output must be -1 or >0");
ok = false;
}
if (ok) {
- [model,graphics,ok] = check_io(model,graphics,[1],nout,[],[]);
+ [model,graphics,ok] = check_io(model,graphics,[1],this.nout,[],[]);
}
if (ok) {
graphics.exprs = exprs;