Skip to content

Commit

Permalink
Merge pull request samvermette#24 from chapados/copy-actionhandler-bl…
Browse files Browse the repository at this point in the history
…ocks

Copy actionHandler blocks in block setter methods.
  • Loading branch information
samvermette committed Jun 7, 2012
2 parents 5daa615 + f93efca commit 0f4482d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SVPullToRefresh/SVPullToRefresh.m
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit 0f4482d

Please sign in to comment.