You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2014/08/14 08:33:53 UTC

[2/2] ios commit: CB-6884 - Support new Cordova bridge under iOS 8 WKWebView (typo fix)

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/wkwebview
Commit: 2a38ad254de202b7aef893427f5c08de2903a415
Parents: 8955572
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Aug 13 23:33:44 2014 -0700
Committer: Shazron Abdullah <sh...@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"];
             }