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/Diode.js | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'js/Electrical/Diode.js')

diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index 846dbafc..6e0c8417 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -23,6 +23,7 @@ function Diode() {
         this.x = standard_define([2,1],model,exprs,list(gr_i,0));
         this.x.graphics.in_implicit = ["I"];
         this.x.graphics.out_implicit = ["I"];
+        return new BasicBlock(this.x);
     }
     Diode.prototype.details = function Diode() {
         return this.x;
@@ -46,5 +47,6 @@ function Diode() {
             this.x.model = model;
             break;
         }
+        return new BasicBlock(this.x);
     }
 }
-- 
cgit