diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index 3d389133..ea55cd16 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -266,12 +266,12 @@ objectTransitionBlock:^(NSArray *toObjects) { // temporarily capture the item map that we are transitioning from in case // there are any item deletes at the same - weakSelf.previoussectionMap = [weakSelf.sectionMap copy]; + weakSelf.previousSectionMap = [weakSelf.sectionMap copy]; [weakSelf updateObjects:toObjects dataSource:dataSource]; } completion:^(BOOL finished) { // release the previous items - weakSelf.previoussectionMap = nil; + weakSelf.previousSectionMap = nil; if (completion) { completion(finished); @@ -521,8 +521,8 @@ - (IGListSectionMap *)sectionMapAdjustForUpdateBlock:(BOOL)adjustForUpdateBlock { // if we are inside an update block, we may have to use the /previous/ item map for some operations - if (adjustForUpdateBlock && self.isInUpdateBlock && self.previoussectionMap != nil) { - return self.previoussectionMap; + if (adjustForUpdateBlock && self.isInUpdateBlock && self.previousSectionMap != nil) { + return self.previousSectionMap; } else { return self.sectionMap; } diff --git a/Source/Internal/IGListAdapterInternal.h b/Source/Internal/IGListAdapterInternal.h index f8cc1137..73d8cb97 100644 --- a/Source/Internal/IGListAdapterInternal.h +++ b/Source/Internal/IGListAdapterInternal.h @@ -52,7 +52,7 @@ IGListCollectionContext objects or section controllers. */ @property (nonatomic, assign) BOOL isInUpdateBlock; -@property (nonatomic, strong, nullable) IGListSectionMap *previoussectionMap; +@property (nonatomic, strong, nullable) IGListSectionMap *previousSectionMap; @property (nonatomic, strong) NSMutableSet *registeredCellClasses; @property (nonatomic, strong) NSMutableSet *registeredNibNames;