Skip to content

Commit dd2f8e8

Browse files
committed
chore: refactor
1 parent 1cee7b8 commit dd2f8e8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/collectionview/index.ios.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -737,11 +737,10 @@ export class CollectionView extends CollectionViewBase {
737737
}
738738

739739
private clearRealizedCells() {
740-
const that = new WeakRef<CollectionView>(this);
741-
this._map.forEach(function (value, key: CollectionViewCell) {
742-
that.get()._removeContainer(key);
743-
that.get()._clearCellViews(key);
744-
}, that);
740+
this._map.forEach((value, key: CollectionViewCell) => {
741+
this._removeContainer(key);
742+
this._clearCellViews(key);
743+
});
745744
this._map.clear();
746745
}
747746

0 commit comments

Comments
 (0)