From: Grant Paul Date: Mon, 14 Feb 2011 08:35:49 +0000 (-0800) Subject: Added more comments, and removed a useless method. X-Git-Tag: v1.1.0%b1~344 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/c026045add801ae7633056d39ae1e68eebe9765e Added more comments, and removed a useless method. --- 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]; }