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/OpAmp.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/Electrical/OpAmp.js') diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index ceaa3228..4123f4f8 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -21,6 +21,7 @@ function OpAmp() { this.x = standard_define([3,5],model,exprs,gr_i); this.x.graphics.in_implicit = [["I"],["I"]]; this.x.graphics.out_implicit = ["I"]; + return new BasicBlock(this.x); } OpAmp.prototype.details = function OpAmp() { return this.x; @@ -43,5 +44,6 @@ function OpAmp() { this.x.model = model; break; } + return new BasicBlock(this.x); } } -- cgit