Skip to content

Commit 304acde

Browse files
change the method
1 parent 082adf1 commit 304acde

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/transaction/predicate-impl.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,7 @@ export class PredicateImpl<T = any, U = any> implements IPredicate<T, U> {
9090
}
9191

9292
deleteAll(): IPredicate<T, U> {
93-
const deleteDiff = this._diff.deletes.get(this)!;
94-
95-
for (const node of this._data) {
96-
deleteDiff.add(node);
97-
}
98-
99-
this._data.splice(0, this._data.length);
93+
this.delete(Array.from(this._data));
10094
return this;
10195
}
10296

0 commit comments

Comments
 (0)