Skip to content
Browse files

Restore some needed code

  • Loading branch information...
1 parent a8ed457 commit 38049053d40e2ff89c96c6017e89284d3ae9cad0 @Sephiroth87 committed Aug 21, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 ODRefreshControl/ODRefreshControl.m
View
7 ODRefreshControl/ODRefreshControl.m
@@ -73,7 +73,6 @@ - (id)initInScrollView:(UIScrollView *)scrollView
_shapeLayer.shadowOffset = CGSizeMake(0, 1);
_shapeLayer.shadowOpacity = 0.4;
_shapeLayer.shadowRadius = 0.5;
- _shapeLayer.hidden = !self.enabled;
[self.layer addSublayer:_shapeLayer];
_arrowLayer = [CAShapeLayer layer];
@@ -91,7 +90,7 @@ - (id)initInScrollView:(UIScrollView *)scrollView
- (void)dealloc
{
- [self.scrollView removeObserver:self forKeyPath:@"contentOffset" context:nil];
+ [self.scrollView removeObserver:self forKeyPath:@"contentOffset"];
self.scrollView = nil;
}
@@ -160,6 +159,10 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
} else {
return;
}
+ } else {
+ if (offset >= 0) {
+ return;
+ }
}
}

0 comments on commit 3804905

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