Skip to content

Commit

Permalink
Fix early-exit condition in -stopObservingScrollView
Browse files Browse the repository at this point in the history
This bug was introduced when converting the boolean flag from ivars
to a property.
  • Loading branch information
chapados committed Jun 19, 2012
1 parent d5c6115 commit 9a05a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SVPullToRefresh/SVPullToRefresh.m
Expand Up @@ -265,7 +265,7 @@ - (void)startObservingScrollView {
} }


- (void)stopObservingScrollView { - (void)stopObservingScrollView {
if(self.isObservingScrollView) if(!self.isObservingScrollView)
return; return;


[self.scrollView removeObserver:self forKeyPath:@"contentOffset"]; [self.scrollView removeObserver:self forKeyPath:@"contentOffset"];
Expand Down

0 comments on commit 9a05a16

Please sign in to comment.