cordova-commits mailing list archives

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


CB-8351 Use argumentForIndex rather than NSArray extension


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

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

----------------------------------------------------------------------
 src/ios/CDVLocation.m | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/b1c963f6/src/ios/CDVLocation.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m
index bcb12df..6fad133 100644
--- a/src/ios/CDVLocation.m
+++ b/src/ios/CDVLocation.m
@@ -199,7 +199,7 @@
 - (void)getLocation:(CDVInvokedUrlCommand*)command
 {
     NSString* callbackId = command.callbackId;
-    BOOL enableHighAccuracy = [[command.arguments objectAtIndex:0] boolValue];
+    BOOL enableHighAccuracy = [[command argumentAtIndex:0] boolValue];
 
     if ([self isLocationServicesEnabled] == NO) {
         NSMutableDictionary* posError = [NSMutableDictionary dictionaryWithCapacity:2];
@@ -232,8 +232,8 @@
 - (void)addWatch:(CDVInvokedUrlCommand*)command
 {
     NSString* callbackId = command.callbackId;
-    NSString* timerId = [command.arguments objectAtIndex:0];
-    BOOL enableHighAccuracy = [[command.arguments objectAtIndex:1] boolValue];
+    NSString* timerId = [command argumentAtIndex:0];
+    BOOL enableHighAccuracy = [[command argumentAtIndex:1] boolValue];
 
     if (!self.locationData) {
         self.locationData = [[CDVLocationData alloc] init];
@@ -263,7 +263,7 @@
 
 - (void)clearWatch:(CDVInvokedUrlCommand*)command
 {
-    NSString* timerId = [command.arguments objectAtIndex:0];
+    NSString* timerId = [command argumentAtIndex:0];
 
     if (self.locationData && self.locationData.watchCallbacks && [self.locationData.watchCallbacks
objectForKey:timerId]) {
         [self.locationData.watchCallbacks removeObjectForKey:timerId];


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


Mime
View raw message