Skip to content

Commit

Permalink
Merge pull request marcuswestin#150 from yukimunet/alloc
Browse files Browse the repository at this point in the history
use the self allocation
  • Loading branch information
marcuswestin committed Sep 10, 2015
2 parents 7cfecec + c8b618e commit aede17c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WebViewJavascriptBridge/WKWebViewJavascriptBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ + (instancetype)bridgeForWebView:(WKWebView*)webView webViewDelegate:(NSObject<W

+ (instancetype)bridgeForWebView:(WKWebView*)webView webViewDelegate:(NSObject<WKNavigationDelegate>*)webViewDelegate handler:(WVJBHandler)messageHandler resourceBundle:(NSBundle*)bundle
{
WKWebViewJavascriptBridge* bridge = [[WKWebViewJavascriptBridge alloc] init];
WKWebViewJavascriptBridge* bridge = [[self alloc] init];
[bridge _setupInstance:webView webViewDelegate:webViewDelegate handler:messageHandler resourceBundle:bundle];
[bridge reset];
return bridge;
Expand Down
2 changes: 1 addition & 1 deletion WebViewJavascriptBridge/WebViewJavascriptBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ + (instancetype)bridgeForWebView:(WVJB_WEBVIEW_TYPE*)webView webViewDelegate:(WV

+ (instancetype)bridgeForWebView:(WVJB_WEBVIEW_TYPE*)webView webViewDelegate:(WVJB_WEBVIEW_DELEGATE_TYPE*)webViewDelegate handler:(WVJBHandler)messageHandler resourceBundle:(NSBundle*)bundle
{
WebViewJavascriptBridge* bridge = [[WebViewJavascriptBridge alloc] init];
WebViewJavascriptBridge* bridge = [[self alloc] init];
[bridge _platformSpecificSetup:webView webViewDelegate:webViewDelegate handler:messageHandler resourceBundle:bundle];
return bridge;
}
Expand Down

0 comments on commit aede17c

Please sign in to comment.