Skip to content

Commit

Permalink
Remove fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 13, 2023
1 parent bdfbfee commit 701d001
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/AtomList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ import { IDisposable } from "./types";
if (item instanceof Function) {
let index: number = 0;
let removed: boolean = false;
for (const it of this) {
for (let index = 0; index <= this.length;) {
const it = this[index];
if (item(it)) {
this.removeAt(index);
removed = true;
Expand Down

0 comments on commit 701d001

Please sign in to comment.