From c026045add801ae7633056d39ae1e68eebe9765e Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Mon, 14 Feb 2011 00:35:49 -0800 Subject: [PATCH] Added more comments, and removed a useless method. --- MobileCydia.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index bf44ea69..dcc9b153 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6596,10 +6596,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { @implementation CYNavigationController -- (void) dealloc { - [super dealloc]; -} - - (NSArray *) navigationURLCollection { NSMutableArray *stack([NSMutableArray array]); @@ -6614,6 +6610,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (void) reloadData { for (CYViewController *page in [self viewControllers]) { + // Only reload controllers that have already loaded. + // This prevents a page from accidentally loading too + // early if it hasn't been shown on the screen yet. if ([page hasLoaded]) [page reloadData]; } -- 2.45.2