summaryrefslogtreecommitdiff
path: root/js/Misc/scifunc_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/scifunc_block.js
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Misc/scifunc_block.js')
-rw-r--r--js/Misc/scifunc_block.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Misc/scifunc_block.js b/js/Misc/scifunc_block.js
index 96ddc1f3..f5715e61 100644
--- a/js/Misc/scifunc_block.js
+++ b/js/Misc/scifunc_block.js
@@ -60,8 +60,8 @@ function scifunc_block() {
var needcompile = 0;
this.x = arg1;
this.model = arg1.model;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
if (size(exprs[1-1],"*")==8) {
exprs[1-1][9-1] = "0";
}
@@ -83,17 +83,17 @@ function scifunc_block() {
var nci = size(this.ci,1);
this.co = int(this.co.slice());
var nco = size(this.co,1);
- var tmpvar0 = genfunc1(exprs[2-1],this.i,this.o,nci,nco,size(this.xx,1),size(this.z,1),nrp,"c")
- var ok = tmpvar0[0]
- var tt = tmpvar0[1]
+ var tmpvar0 = genfunc1(exprs[2-1],this.i,this.o,nci,nco,size(this.xx,1),size(this.z,1),nrp,"c");
+ var ok = tmpvar0[0];
+ var tt = tmpvar0[1];
var dep_ut = tmpvar0[2];
dep_ut[2-1] = (1==this.deptime);
if (!ok) {
break;
}
- var tmpvar1 = check_io(this.model,graphics,this.i,this.o,this.ci,this.co)
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,this.i,this.o,this.ci,this.co);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
var auto = this.auto0;
@@ -112,8 +112,8 @@ function scifunc_block() {
this.model.dep_ut = new ScilabDouble([dep_ut]);
this.x.model = this.model;
exprs[2-1] = tt;
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
break;
}
}