diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-05 05:19:54 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:37 -0800 |
commit | eea75e8f60446a55ae35f9d2c87e4d3879d365af (patch) | |
tree | e7c6c9880bd390b6b277438f4ebbb64777fea02b | |
parent | a86042fa1663c000fd8a54fd4d483c2bf3f206fc (diff) |
runJavaScript*Panel during popViewController has self dealloc.
-rw-r--r-- | CyteKit/WebView.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CyteKit/WebView.mm b/CyteKit/WebView.mm index dd72f5a..608e9e2 100644 --- a/CyteKit/WebView.mm +++ b/CyteKit/WebView.mm @@ -264,6 +264,7 @@ static NSURLRequest *$UIWebViewWebViewDelegate$webView$resource$willSendRequest$ // }}} // webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: (2.1+) {{{ - (void) webView:(WebView *)view runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame { + [[self retain] autorelease]; id<CyteWebViewDelegate> delegate([self delegate]); if ([UIWebView instancesRespondToSelector:@selector(webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:)]) if ( @@ -275,6 +276,7 @@ static NSURLRequest *$UIWebViewWebViewDelegate$webView$resource$willSendRequest$ // }}} // webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame: (2.1+) {{{ - (BOOL) webView:(WebView *)view runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame { + [[self retain] autorelease]; id<CyteWebViewDelegate> delegate([self delegate]); if ([UIWebView instancesRespondToSelector:@selector(webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:)]) if ( @@ -287,6 +289,7 @@ static NSURLRequest *$UIWebViewWebViewDelegate$webView$resource$willSendRequest$ // }}} // webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame: (2.1+) {{{ - (NSString *) webView:(WebView *)view runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)text initiatedByFrame:(WebFrame *)frame { + [[self retain] autorelease]; id<CyteWebViewDelegate> delegate([self delegate]); if ([UIWebView instancesRespondToSelector:@selector(webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame:)]) if ( |