From afed64f1a0eab0b2d742088186d7bc340a2c895b Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 26 Jun 2018 12:08:19 +0530 Subject: return block type in define and set --- js/Electrical/NMOS.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/Electrical/NMOS.js') diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js index 932f4ac4..0a8d1738 100644 --- a/js/Electrical/NMOS.js +++ b/js/Electrical/NMOS.js @@ -27,6 +27,7 @@ function NMOS() { this.x = standard_define([2,2],model,exprs,gr_i); this.x.graphics.in_implicit = ["I"]; this.x.graphics.out_implicit = [["I"],["I"],["I"]]; + return new BasicBlock(this.x); } NMOS.prototype.details = function NMOS() { return this.x; @@ -49,5 +50,6 @@ function NMOS() { this.x.model = model; break; } + return new BasicBlock(this.x); } } -- cgit