summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-01 08:38:35 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:32 -0800
commita713fcd35b952bc5215b8e235c5e854680706679 (patch)
treeb2da54d039d2bd8a74329a601db317f5f49b56e1 /CyteKit
parent8b11aa52c431335b56d9bd6321cde112afb37002 (diff)
Add -[CYWebView reloadFromOrigin].
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/CyteWebView.h1
-rw-r--r--CyteKit/CyteWebView.mm4
2 files changed, 5 insertions, 0 deletions
diff --git a/CyteKit/CyteWebView.h b/CyteKit/CyteWebView.h
index 7db1e11..09c66da 100644
--- a/CyteKit/CyteWebView.h
+++ b/CyteKit/CyteWebView.h
@@ -73,6 +73,7 @@
- (id<CYWebViewDelegate>) delegate;
- (void) dispatchEvent:(NSString *)event;
+- (void) reloadFromOrigin;
@end
diff --git a/CyteKit/CyteWebView.mm b/CyteKit/CyteWebView.mm
index 5c07039..c7044bc 100644
--- a/CyteKit/CyteWebView.mm
+++ b/CyteKit/CyteWebView.mm
@@ -350,6 +350,10 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
}
}
+- (void) reloadFromOrigin {
+ [[[self _documentView] webView] reloadFromOrigin:nil];
+}
+
+ (void) initialize {
if (Class $UIWebViewWebViewDelegate = objc_getClass("UIWebViewWebViewDelegate")) {
class_addMethod($UIWebViewWebViewDelegate, @selector(webView:addMessageToConsole:), (IMP) &$UIWebViewWebViewDelegate$webView$addMessageToConsole$, "v16@0:4@8@12");