Revert "delegate node path removal to after call"
This reverts commit 5e0236d9a792a2c06e4a388ebe9c3f8f2ddac225.
This commit is contained in:
parent
6b0320fc83
commit
fff06a047e
@ -57,9 +57,8 @@ export default class TraversalPath {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setContext(parentPath, context, key) {
|
setContext(parentPath, context, key) {
|
||||||
this.shouldRemove = false;
|
this.shouldSkip = false;
|
||||||
this.shouldSkip = false;
|
this.shouldStop = false;
|
||||||
this.shouldStop = false;
|
|
||||||
|
|
||||||
this.parentPath = parentPath || this.parentPath;
|
this.parentPath = parentPath || this.parentPath;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
@ -71,11 +70,6 @@ export default class TraversalPath {
|
|||||||
}
|
}
|
||||||
|
|
||||||
remove() {
|
remove() {
|
||||||
this.shouldRemove = true;
|
|
||||||
this.shouldSkip = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
_remove() {
|
|
||||||
this._refresh(this.node, []);
|
this._refresh(this.node, []);
|
||||||
this.container[this.key] = null;
|
this.container[this.key] = null;
|
||||||
this.flatten();
|
this.flatten();
|
||||||
@ -159,10 +153,6 @@ export default class TraversalPath {
|
|||||||
if (replacement) {
|
if (replacement) {
|
||||||
this.node = replacement;
|
this.node = replacement;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.shouldRemove) {
|
|
||||||
this._remove();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isBlacklisted() {
|
isBlacklisted() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user