We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cee7b8 commit dd2f8e8Copy full SHA for dd2f8e8
src/collectionview/index.ios.ts
@@ -737,11 +737,10 @@ export class CollectionView extends CollectionViewBase {
737
}
738
739
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);
+ this._map.forEach((value, key: CollectionViewCell) => {
+ this._removeContainer(key);
+ this._clearCellViews(key);
+ });
745
this._map.clear();
746
747
0 commit comments