|
@@ -15,10 +15,13 @@ module.exports = function nailfactory(boot) {
|
|
|
return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+
|
|
|
+ */
|
|
|
+
|
|
|
return function(key, value) {
|
|
|
if (stack.length > 0) {
|
|
|
var thisPos = stack.indexOf(this);
|
|
|
-
|
|
|
(~thisPos) ? stack.splice(thisPos + 1) : stack.push(this);
|
|
|
|
|
|
(~thisPos) ? keys.splice(thisPos, Infinity, key) : keys.push(key);
|