incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: Fixed the (PGPlugin.viewController == null) problem for pre-1.4 projects using PhoneGap > 1.3
Date Wed, 18 Jan 2012 21:54:53 GMT
Updated Branches:
  refs/heads/master f03d6a2d6 -> c4b4c57e0


Fixed the (PGPlugin.viewController == null) problem for pre-1.4 projects using PhoneGap >
1.3


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

Branch: refs/heads/master
Commit: c4b4c57e049e537cd271e95e2f506dd6743b6652
Parents: f03d6a2
Author: Shazron Abdullah <shazron@apache.org>
Authored: Wed Jan 18 13:54:41 2012 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Wed Jan 18 13:54:41 2012 -0800

----------------------------------------------------------------------
 PhoneGapLib/Classes/PhoneGapDelegate.m |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/c4b4c57e/PhoneGapLib/Classes/PhoneGapDelegate.m
----------------------------------------------------------------------
diff --git a/PhoneGapLib/Classes/PhoneGapDelegate.m b/PhoneGapLib/Classes/PhoneGapDelegate.m
index b83db91..cdb4925 100755
--- a/PhoneGapLib/Classes/PhoneGapDelegate.m
+++ b/PhoneGapLib/Classes/PhoneGapDelegate.m
@@ -209,6 +209,10 @@ static NSString *gapVersion;
             obj = [[NSClassFromString(className) alloc] initWithWebView:webView];
         }
         
+        if ([obj isKindOfClass:[PGPlugin class]] && [obj respondsToSelector:@selector(setViewController:)])
{ 
+            [obj setViewController:self.viewController];
+        }
+
         if (obj != nil) {
             [self.pluginObjects setObject:obj forKey:className];
             [obj release];


Mime
View raw message