summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-07 22:33:29 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-08 01:50:59 -0800
commitd9fc1d3713a7d40d51ffd8db08b7045fa5a263d1 (patch)
treecf7483c6d5a48fc17189e1f30e1c7fa5615eca93 /CyteKit/WebViewController.mm
parent18169cfd9bd3118f4c7c3b214482c912509288be (diff)
Post CydiaReloadData events, don't actually reload the page.
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 4dc94ef..4bd05b9 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -178,6 +178,7 @@ float CYScrollViewDecelerationRateNormal;
#endif
error_ = false;
+ ready_ = true;
WebThreadLocked lock;
[webview_ loadRequest:request];
@@ -216,7 +217,11 @@ float CYScrollViewDecelerationRateNormal;
- (void) reloadData {
[super reloadData];
- [self reloadURLWithCache:YES];
+
+ if (ready_)
+ [self dispatchEvent:@"CydiaReloadData"];
+ else
+ [self reloadURLWithCache:YES];
}
- (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function {