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 2012/04/20 01:22:10 UTC

ios commit: Workaround for CB-509 - geolocation.clearWatch doesn't shut the GPS down under iOS

Updated Branches:
  refs/heads/master fad71d606 -> 4853cd11e


Workaround for CB-509 - geolocation.clearWatch doesn't shut the GPS down under iOS


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/4853cd11
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/4853cd11
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/4853cd11

Branch: refs/heads/master
Commit: 4853cd11ede5b993a48c27ad3e2dcc41bb49f12c
Parents: fad71d6
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Apr 19 16:21:59 2012 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Apr 19 16:21:59 2012 -0700

----------------------------------------------------------------------
 CordovaLib/Classes/CDVLocation.h |    3 ++-
 CordovaLib/Classes/CDVLocation.m |    8 +++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/4853cd11/CordovaLib/Classes/CDVLocation.h
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocation.h b/CordovaLib/Classes/CDVLocation.h
index 7f4879a..ba0a4d2 100755
--- a/CordovaLib/Classes/CDVLocation.h
+++ b/CordovaLib/Classes/CDVLocation.h
@@ -71,10 +71,11 @@ typedef NSUInteger CDVLocationStatus;
 
 - (BOOL) hasHeadingSupport;
 - (void) getLocation:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
+- (void) stopLocation:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
 - (void) returnLocationInfo: (NSString*) callbackId;
 - (void) returnLocationError: (NSUInteger) errorCode withMessage: (NSString*) message;
 - (void) startLocation;
-- (void) stopLocation;
+- (void) _stopLocation;
 
 - (void) locationManager:(CLLocationManager *)manager
     didUpdateToLocation:(CLLocation *)newLocation

http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/4853cd11/CordovaLib/Classes/CDVLocation.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVLocation.m b/CordovaLib/Classes/CDVLocation.m
index 1d946bb..08081a7 100755
--- a/CordovaLib/Classes/CDVLocation.m
+++ b/CordovaLib/Classes/CDVLocation.m
@@ -248,7 +248,7 @@
      */
 }
 
-- (void) stopLocation
+- (void) _stopLocation
 {
     if (__locationStarted)
 	{
@@ -303,6 +303,12 @@
 
     }
 }
+
+- (void) stopLocation:(NSMutableArray *)arguments withDict:(NSMutableDictionary *)options
+{
+    [self _stopLocation];
+}
+
 - (void)returnLocationInfo: (NSString*) callbackId
 {
     CDVPluginResult* result = nil;