|
@@ -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",
|