Skip to content

Commit 857a29e

Browse files
committed
Merge pull request steipete#85 from BarryHaanstra/master
Fix for issue #80 - performBatchUpdates does not run the updates block Edit
2 parents cbcdfc5 + 7238187 commit 857a29e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PSTCollectionView/PSTCollectionView.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,9 @@ - (void)moveItemAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)
756756
}
757757

758758
- (void)performBatchUpdates:(void (^)(void))updates completion:(void (^)(BOOL finished))completion {
759-
[self reloadData];
759+
if (updates) {
760+
updates();
761+
}
760762
if (completion) {
761763
completion(YES);
762764
}

0 commit comments

Comments
 (0)