Procházet zdrojové kódy

Bumped version to 1.0.3

Jannick Knudsen před 3 roky
rodič
revize
7d7bb883c4
5 změnil soubory, kde provedl 59 přidání a 11 odebrání
  1. 1 1
      VERSION
  2. 1 0
      VERSIONLOG
  3. 11 5
      electra2020.js
  4. 41 0
      m.js
  5. 5 5
      package.json

+ 1 - 1
VERSION

@@ -1 +1 @@
-v1.0.2
+v1.0.3

+ 1 - 0
VERSIONLOG

@@ -3,3 +3,4 @@ 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
+v1.0.3

+ 11 - 5
electra2020.js

@@ -6,6 +6,9 @@ var async = require("async");
 function uberfactory(uuid, slugger) {
 
     var ignores = [
+        "_eventsCount",
+        "off",
+        "on",
         "_isdirty",
         "uninherits",
         "inherits",
@@ -96,9 +99,9 @@ function uberfactory(uuid, slugger) {
             if (parent) {
                 this.parents[parent.name] = parent;
                 this.path = parent.path + "/" + name
-                if(parent._metas.copyonchild){
-                    _.map(parent._metas.copyonchild,function(k){
-                        self._metas[k] = parent._metas[k];    
+                if (parent._metas.copyonchild) {
+                    _.map(parent._metas.copyonchild, function(k) {
+                        self._metas[k] = parent._metas[k];
                     })
                 }
             }
@@ -151,7 +154,7 @@ 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){
+                if (obj == this) {
                     return this;
                 }
                 this._inherits[obj.path] = obj;
@@ -172,7 +175,7 @@ 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){
+                if (obj == this) {
                     return this;
                 }
                 this._extends[obj.path] = obj;
@@ -827,6 +830,9 @@ function setpath(obj, path, value) {
 
 
 uberfactory.ignores = ignores = [
+    "_eventsCount",
+    "off",
+    "on",
     "_isdirty",
     "inherits",
     "uninherits",

+ 41 - 0
m.js

@@ -0,0 +1,41 @@
+
+var ele = require("./index")
+var _ = require("lodash");
+var ee=ele("root")
+console.log(ee)
+
+var t = ee("test")
+ee("abc");
+ee("jkjkj");
+
+//.extends("tester");
+
+
+	
+var x=	ee().test()
+
+	t().extends("tester");
+
+	ee("tg/jk/oi/kke/k")("trtetetrtdssdsd")("a")
+
+	ee("tg/jk/oi/kke/k")("trtetetrtdssdsd")("dsdf")
+
+	ee("tg/jk/oi/kke/k")("trtetetrtdssdsd")("dsdsdsdsf")
+
+	t("teste")
+ 	
+	
+	ee().withAll(function(aa){
+		console.log("OKOKOK", aa.path, _.map(aa.children, function(a, n) {
+                return a().path
+            }))
+	},function(){
+		console.log("OK");
+
+
+
+		console.log(ee().exportFlatSync("/"));
+
+
+
+	})

+ 5 - 5
package.json

@@ -1,6 +1,6 @@
 {
     "name": "eles",
-    "version": "1.0.2",
+    "version": "1.0.3",
     "description": "",
     "main": "index.js",
     "scripts": {
@@ -8,14 +8,14 @@
     },
     "repository": {
         "type": "git",
-        "url": "ssh://git@git.tum.dk/tum.dk/eles.git"
+        "url": "https://git.tum.dk/tum.dk/eles.git"
     },
     "author": "",
     "license": "ISC",
     "dependencies": {
-        "buffa": "git+ssh://git@git.tum.dk/tum.dk/buffa.git",
+        "buffa": "git+https://git.tum.dk/tum.dk/buffa.git",
         "chai": "^4.1.2",
         "expect.js": "^0.3.1",
-        "uuid_maker": "git+ssh://git@git.tum.dk/tum.dk/uuid_maker.git"
+        "uuid_maker": "git+https://git.tum.dk/tum.dk/uuid_maker.git"
     }
-}
+}