cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-plugin-statusbar git commit: CB-8351 Use argumentForIndex rather than NSArray extension
Date Fri, 23 Jan 2015 14:51:43 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master eb119e718 -> cad3a13c3


CB-8351 Use argumentForIndex rather than NSArray extension


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

Branch: refs/heads/master
Commit: cad3a13c375b7df63d04711d7e60175e82494129
Parents: eb119e7
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 23 09:49:21 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 23 09:49:21 2015 -0500

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/cad3a13c/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index f305f63..d2bd708 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -232,7 +232,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
 
 - (void) overlaysWebView:(CDVInvokedUrlCommand*)command
 {
-    id value = [command.arguments objectAtIndex:0];
+    id value = [command argumentAtIndex:0];
     if (!([value isKindOfClass:[NSNumber class]])) {
         value = [NSNumber numberWithBool:YES];
     }
@@ -301,7 +301,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
 
 - (void) backgroundColorByName:(CDVInvokedUrlCommand*)command
 {
-    id value = [command.arguments objectAtIndex:0];
+    id value = [command argumentAtIndex:0];
     if (!([value isKindOfClass:[NSString class]])) {
         value = @"black";
     }
@@ -325,7 +325,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
 
 - (void) backgroundColorByHexString:(CDVInvokedUrlCommand*)command
 {
-    NSString* value = [command.arguments objectAtIndex:0];
+    NSString* value = [command argumentAtIndex:0];
     if (!([value isKindOfClass:[NSString class]])) {
         value = @"#000000";
     }


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


Mime
View raw message