|
@@ -151,6 +151,9 @@ function uberfactory(uuid, slugger) {
|
|
|
electra.prototype.inherits = function(obj_) {
|
|
|
var obj = typeof(obj_) === "function" ? obj_() : typeof(obj_) === "object" ? obj_ : typeof(obj_) === "string" ? inner(obj_)() : false
|
|
|
if (obj) {
|
|
|
+ if(obj == this){
|
|
|
+ return this;
|
|
|
+ }
|
|
|
this._inherits[obj.path] = obj;
|
|
|
obj._extends[this.path] = this;
|
|
|
}
|
|
@@ -169,6 +172,9 @@ function uberfactory(uuid, slugger) {
|
|
|
electra.prototype.extends = function(obj_) {
|
|
|
var obj = typeof(obj_) === "function" ? obj_() : typeof(obj_) === "object" ? obj_ : typeof(obj_) === "string" ? inner(obj_)() : false
|
|
|
if (obj) {
|
|
|
+ if(obj == this){
|
|
|
+ return this;
|
|
|
+ }
|
|
|
this._extends[obj.path] = obj;
|
|
|
obj._inherits[this.path] = this;
|
|
|
}
|