CB-6884 - Support new Cordova bridge under iOS 8 WKWebView (typo fix)

Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/2a38ad25
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/2a38ad25
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/2a38ad25

Branch: refs/heads/4.0.x
Commit: 2a38ad254de202b7aef893427f5c08de2903a415
Parents: 8955572
Author: Shazron Abdullah <shaz...@apache.org>
Authored: Wed Aug 13 23:33:44 2014 -0700
Committer: Shazron Abdullah <shaz...@apache.org>
Committed: Wed Aug 13 23:33:44 2014 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVViewController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/2a38ad25/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m 
b/CordovaLib/Classes/CDVViewController.m
index 0bde78e..85483c0 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -425,7 +425,7 @@
 
             // scriptMessageHandler is the object that conforms to the 
WKScriptMessageHandler protocol
             // see 
https://developer.apple.com/library/prerelease/ios/documentation/WebKit/Reference/WKScriptMessageHandler_Ref/index.html#//apple_ref/swift/intf/WKScriptMessageHandler
-            if ([_commandDelegate 
conformsToProtocol:@protocol(WKScriptMessageHandler)]) {
+            if ([self conformsToProtocol:@protocol(WKScriptMessageHandler)]) {
                 [userContentController addScriptMessageHandler:self 
name:@"cordova"];
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to