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/11/01 00:44:03 UTC

[43/50] 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/f6d89c6a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/f6d89c6a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/f6d89c6a

Branch: refs/heads/wkwebview
Commit: f6d89c6a9474c194ce9f9d8b86fda652f1c7503f
Parents: 1c1e9c3
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Aug 13 23:33:44 2014 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Fri Oct 31 15:37:43 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/f6d89c6a/CordovaLib/Classes/CDVViewController.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m
index 4f81e92..79d16b8 100644
--- a/CordovaLib/Classes/CDVViewController.m
+++ b/CordovaLib/Classes/CDVViewController.m
@@ -462,7 +462,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-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org