summaryrefslogtreecommitdiff
path: root/js/Electrical/NPN.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 12:08:19 +0530
committerSunil Shetye2018-06-26 12:08:19 +0530
commitafed64f1a0eab0b2d742088186d7bc340a2c895b (patch)
tree7270fd2e6c53e6df90c71e2fcbccd8149c3553a5 /js/Electrical/NPN.js
parent7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (diff)
downloadsci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.gz
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.bz2
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.zip
return block type in define and set
Diffstat (limited to 'js/Electrical/NPN.js')
-rw-r--r--js/Electrical/NPN.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js
index 93484238..c82ac606 100644
--- a/js/Electrical/NPN.js
+++ b/js/Electrical/NPN.js
@@ -47,6 +47,7 @@ function NPN() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
NPN.prototype.details = function NPN() {
return this.x;
@@ -69,5 +70,6 @@ function NPN() {
this.x.graphics.exprs = exprs;
break;
}
+ return new BasicBlock(this.x);
}
}