You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2015/03/13 16:14:49 UTC

cordova-plugin-globalization git commit: CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method

Repository: cordova-plugin-globalization
Updated Branches:
  refs/heads/master 0a538d7b9 -> a200b1bfb


CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/a200b1bf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/a200b1bf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/a200b1bf

Branch: refs/heads/master
Commit: a200b1bfb9a19059f1bcf111322146373eba969c
Parents: 0a538d7
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Mar 13 11:14:35 2015 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Mar 13 11:14:35 2015 -0400

----------------------------------------------------------------------
 src/ios/CDVGlobalization.m | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/a200b1bf/src/ios/CDVGlobalization.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVGlobalization.m b/src/ios/CDVGlobalization.m
index a8c00e9..49691a0 100644
--- a/src/ios/CDVGlobalization.m
+++ b/src/ios/CDVGlobalization.m
@@ -21,13 +21,9 @@
 
 @implementation CDVGlobalization
 
-- (id)initWithWebView:(UIWebView*)theWebView
+- (void)pluginInitialize
 {
-    self = (CDVGlobalization*)[super initWithWebView:theWebView];
-    if (self) {
-        currentLocale = CFLocaleCopyCurrent();
-    }
-    return self;
+    currentLocale = CFLocaleCopyCurrent();
 }
 
 - (void)getPreferredLanguage:(CDVInvokedUrlCommand*)command


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