diff --git a/lib/index.js b/lib/index.js index 51b8c54..95b22c6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -151,8 +151,6 @@ LivePatch.prototype._patch = function(type, value) { var top = this.stack[this.stack.length - 1]; var parent = this.stack[this.stack.length - 2]; - if (!top) return - if (top.type == 'array') { parent = top; this._pushKey(parent.counter.toString());