Skip to content
Browse files

Fix a typo in CPActiveRecord +-addObserver:

  • Loading branch information...
1 parent 1d4e264 commit ad8e2b335f6230c8cae036f16496794d679aa968 Nicholas Small committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 CPActiveRecord.j
View
4 CPActiveRecord.j
@@ -390,7 +390,7 @@ var CPActiveRecordIdentifierKey = @"id";
+ (void)removeObserver:(id)anObserver
{
- var center = [CPNotification defaultCenter];
+ var center = [CPNotificationCenter defaultCenter];
[center removeObserver:anObserver name:CPActiveRecordCollectionWillLoad object:self];
[center removeObserver:anObserver name:CPActiveRecordCollectionDidLoad object:self];
}
@@ -421,7 +421,7 @@ var CPActiveRecordIdentifierKey = @"id";
- (void)removeObserver:(id)anObserver
{
- var center = [CPNotification defaultCenter];
+ var center = [CPNotificationCenter defaultCenter];
[center removeObserver:anObserver name:CPActiveRecordRecordWillLoad object:self];
[center removeObserver:anObserver name:CPActiveRecordRecordDidLoad object:self];
}

0 comments on commit ad8e2b3

Please sign in to comment.
Something went wrong with that request. Please try again.