diff --git a/src/ios/CDVLocation.m b/src/ios/CDVLocation.m index 84bdf15b..fc3fd61a 100644 --- a/src/ios/CDVLocation.m +++ b/src/ios/CDVLocation.m @@ -82,7 +82,6 @@ - (BOOL)isAuthorized - (BOOL)isLocationServicesEnabled { - BOOL locationServicesEnabledInstancePropertyAvailable = [self.locationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 3.x BOOL locationServicesEnabledClassPropertyAvailable = [CLLocationManager respondsToSelector:@selector(locationServicesEnabled)]; // iOS 4.x if (locationServicesEnabledClassPropertyAvailable) { // iOS 4.x @@ -213,7 +212,7 @@ - (void)getLocation:(CDVInvokedUrlCommand*)command } } - if (!__locationStarted || (__highAccuracyEnabled != enableHighAccuracy)) { + if (!self->__locationStarted || (self->__highAccuracyEnabled != enableHighAccuracy)) { // add the callbackId into the array so we can call back when get data @synchronized (self.locationData.locationCallbacks) { if (callbackId != nil) {