Permalink
Browse files

Fix early-exit condition in -stopObservingScrollView

This bug was introduced when converting the boolean flag from ivars
to a property.
  • Loading branch information...
1 parent d5c6115 commit 9a05a167f782f34548852e0775ac47a57a2574cd @chapados chapados committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SVPullToRefresh/SVPullToRefresh.m
View
2 SVPullToRefresh/SVPullToRefresh.m
@@ -265,7 +265,7 @@ - (void)startObservingScrollView {
}
- (void)stopObservingScrollView {
- if(self.isObservingScrollView)
+ if(!self.isObservingScrollView)
return;
[self.scrollView removeObserver:self forKeyPath:@"contentOffset"];

0 comments on commit 9a05a16

Please sign in to comment.