Permalink
Browse files

Merge pull request #24 from chapados/copy-actionhandler-blocks

Copy actionHandler blocks in block setter methods.
  • Loading branch information...
2 parents 5daa615 + f93efca commit 0f4482dde86d3c002c28c5879e0b43d2745e7be8 @samvermette samvermette committed Jun 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 SVPullToRefresh/SVPullToRefresh.m
@@ -173,7 +173,7 @@ - (UIEdgeInsets)originalScrollViewContentInset {
#pragma mark - Setters
- (void)setPullToRefreshActionHandler:(void (^)(void))actionHandler {
- pullToRefreshActionHandler = actionHandler;
+ pullToRefreshActionHandler = [actionHandler copy];
[_scrollView addSubview:self];
self.showsPullToRefresh = YES;
@@ -191,7 +191,7 @@ - (void)setPullToRefreshActionHandler:(void (^)(void))actionHandler {
}
- (void)setInfiniteScrollingActionHandler:(void (^)(void))actionHandler {
- infiniteScrollingActionHandler = actionHandler;
+ infiniteScrollingActionHandler = [actionHandler copy];
self.showsInfiniteScrolling = YES;
self.frame = CGRectMake(0, 0, self.scrollView.bounds.size.width, 60);

0 comments on commit 0f4482d

Please sign in to comment.