Comparing version
@@ -126,3 +126,3 @@ (function() { | ||
} | ||
cwarn(true, "couldn't get notify cb for computed ", o.path); | ||
if(process.env.NODE_ENV!=='production' && true){console.warn('couldn\'t get notify cb for computed ' + o.path)}; | ||
return noop; | ||
@@ -129,0 +129,0 @@ } |
@@ -84,20 +84,22 @@ (function() { | ||
connectedCallback: function() { | ||
var k, name, ref1, results, v; | ||
if (this._isFirstConnect) { | ||
ref1 = this.props; | ||
results = []; | ||
for (k in ref1) { | ||
v = ref1[k]; | ||
if (v["default"] != null) { | ||
if (v.name) { | ||
name = v.name; | ||
return this.$nextTick(function() { | ||
var k, name, ref1, results, v; | ||
ref1 = this.props; | ||
results = []; | ||
for (k in ref1) { | ||
v = ref1[k]; | ||
if (v["default"] != null) { | ||
if (v.name) { | ||
name = v.name; | ||
} else { | ||
name = k; | ||
} | ||
results.push(this[name] != null ? this[name] : this[name] = v["default"]); | ||
} else { | ||
name = k; | ||
results.push(void 0); | ||
} | ||
results.push(this[name] != null ? this[name] : this[name] = v["default"]); | ||
} else { | ||
results.push(void 0); | ||
} | ||
} | ||
return results; | ||
return results; | ||
}); | ||
} | ||
@@ -104,0 +106,0 @@ } |
@@ -30,3 +30,5 @@ (function() { | ||
if (process.env.NODE_ENV === "test") { | ||
return typeof this.tests === "function" ? this.tests(this) : void 0; | ||
return this.$nextTick(function() { | ||
return typeof this.tests === "function" ? this.tests(this) : void 0; | ||
}); | ||
} | ||
@@ -33,0 +35,0 @@ } |
@@ -111,3 +111,3 @@ (function() { | ||
} | ||
cwarn(o.value != null, "can't set " + o.value + " on " + o.path + " yet. Parent isn't setted yet"); | ||
if(process.env.NODE_ENV!=='production' && o.value != null){console.warn('can\'t set ' + o.value + ' on ' + o.path + ' yet. Parent isn\'t setted yet')}; | ||
} else { | ||
@@ -121,10 +121,10 @@ return this.$watch.setObj(o); | ||
o.notify = function(val, oldVal) { | ||
var l, len2, ref3, results; | ||
var l, len2, ref3; | ||
ref3 = o.cbs; | ||
results = []; | ||
for (l = 0, len2 = ref3.length; l < len2; l++) { | ||
cb = ref3[l]; | ||
results.push(cb(val, oldVal)); | ||
try { | ||
cb(val, oldVal); | ||
} catch (error) {} | ||
} | ||
return results; | ||
}; | ||
@@ -178,3 +178,3 @@ getter = function() { | ||
if (isString(cb)) { | ||
cwarn(!_this[cb], "method ", cb, " not found"); | ||
if(process.env.NODE_ENV!=='production' && !_this[cb]){console.warn('method ' + cb + ' not found')}; | ||
return _this[cb].bind(_this); | ||
@@ -181,0 +181,0 @@ } |
{ | ||
"name": "ceri", | ||
"description": "Custom Elements enRIched", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/cerijs/", | ||
@@ -6,0 +6,0 @@ "author": { |
66648
0.42%1701
0.24%7
75%