summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-21 16:05:24 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-21 16:05:24 -0700
commitb73d8da0dad38d15ca4ec307cacdebbe092dec5b (patch)
tree3f60529e3b67cd4434a494bc72fe531c4f2ae4e0 /CyteKit
parentade2267f7f870d0a4b1f58c562ab823a9244127b (diff)
CyteWebView failed to verify a delegate before sending.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/WebView.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm
index 0e8ba71..7fac96e 100644
--- a/CyteKit/WebView.mm
+++ b/CyteKit/WebView.mm
@@ -171,7 +171,8 @@ static void $UIWebViewWebViewDelegate$webView$addMessageToConsole$(UIWebViewWebV
[delegate webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator];
if (![mediator decided] && [UIWebView instancesRespondToSelector:@selector(webView:decidePolicyForNavigationAction:request:frame:decisionListener:)])
[super webView:view decidePolicyForNavigationAction:action request:request frame:frame decisionListener:mediator];
- [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame];
+ if ([delegate respondsToSelector:@selector(webView:didDecidePolicy:forNavigationAction:request:frame:)])
+ [delegate webView:view didDecidePolicy:[mediator decision] forNavigationAction:action request:request frame:frame];
[mediator decide];
}
// }}}