Pārlūkot izejas kodu

Bumped version to 1.0.2

Jannick Knudsen 5 gadi atpakaļ
vecāks
revīzija
89e6d446cc
4 mainītis faili ar 9 papildinājumiem un 2 dzēšanām
  1. 1 1
      VERSION
  2. 1 0
      VERSIONLOG
  3. 6 0
      electra2020.js
  4. 1 1
      package.json

+ 1 - 1
VERSION

@@ -1 +1 @@
-v1.0.1
+v1.0.2

+ 1 - 0
VERSIONLOG

@@ -2,3 +2,4 @@ v0.0.0
 v0.0.1 | Tue Nov 27 09:10:17 CET 2018 | 0.0.1
 v0.0.2 | Tue Nov 27 09:30:29 CET 2018 | 0.0.2
 v1.0.1
+v1.0.2

+ 6 - 0
electra2020.js

@@ -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;
             }

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "eles",
-    "version": "1.0.1",
+    "version": "1.0.2",
     "description": "",
     "main": "index.js",
     "scripts": {