Skip to content

Commit

Permalink
more strongSelf to avoid potential ref cycle warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Drayer committed Jun 6, 2014
1 parent 03dc132 commit 65d0d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WWDCDownloader/WWDCWebsiteInteractionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ - (IBAction) download:(id) sender {
[unorderedListElement.children wwdc_enumerateObjectsUsingBlock:^(DOMObject *listObject, unsigned listIndex, BOOL *stopListEnumeration) {
__strong typeof(weakSelf) strongSelf = weakSelf;
if (strongSelf->_loggedIn) {
[self findDownloadsFromDOMLIElement:(DOMHTMLLIElement *)listObject];
[strongSelf findDownloadsFromDOMLIElement:(DOMHTMLLIElement *)listObject];
} else {
[self loginFromDOMLIElement:(DOMHTMLLIElement *)listObject];
[strongSelf loginFromDOMLIElement:(DOMHTMLLIElement *)listObject];

*stopListEnumeration = YES;
}
Expand Down

0 comments on commit 65d0d2b

Please sign in to comment.