summaryrefslogtreecommitdiff
path: root/js/Misc/c_block.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 17:51:05 +0530
committerSunil Shetye2018-07-12 23:01:50 +0530
commit44a3807a94783e831070f0e003340af58dc64d16 (patch)
treecce50388afa463583d7a7aead34d40f5b02281f7 /js/Misc/c_block.js
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Misc/c_block.js')
-rw-r--r--js/Misc/c_block.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js
index fd3573df..095a6fa1 100644
--- a/js/Misc/c_block.js
+++ b/js/Misc/c_block.js
@@ -49,8 +49,8 @@ function c_block() {
this.lab = arguments[0]["lab"]
this.x = arg1;
this.model = arg1.model;
- var graphics = arg1.graphics;
- var label = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var label = this.graphics.exprs;
while (true) {
[ok,this.i,this.o,this.rpar,this.funam,this.lab] = scicos_getvalue("Set C_block parameters",["input ports sizes","output port sizes","System parameters vector","function name"],list("vec",-1,"vec",-1,"vec",-1,"str",-1),label[1-1]);
if (!ok) {
@@ -69,23 +69,23 @@ function c_block() {
if (this.model.sim[1-1]!=this.funam||size(this.model.in1,"*")!=size(this.i,"*")||size(this.model.out,"*")!=size(this.o,"*")) {
var tt = [];
}
- var tmpvar0 = CFORTR(this.funam,tt,this.i,this.o)
- var ok = tmpvar0[0]
+ var tmpvar0 = CFORTR(this.funam,tt,this.i,this.o);
+ var ok = tmpvar0[0];
var tt = tmpvar0[1];
if (!ok) {
break;
}
- var tmpvar1 = check_io(this.model,graphics,this.i,this.o,[],[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,this.i,this.o,[],[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
- this.model.sim[1] = new ScilabString([this.funam]);
+ this.model.sim[1-1] = new ScilabString([this.funam]);
this.model.rpar = new ScilabDouble(this.rpar);
label[2-1] = tt;
this.x.model = this.model;
- graphics.exprs = label;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([label]);
+ this.x.graphics = this.graphics;
break;
}
}