File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,13 @@ @implementation CDVLocation
53
53
54
54
@synthesize locationManager, locationData;
55
55
56
- - (CDVPlugin*) initWithWebView : (UIWebView*) theWebView
56
+ - (void ) pluginInitialize
57
57
{
58
- self = (CDVLocation*)[super initWithWebView: (UIWebView*)theWebView];
59
- if (self) {
60
- self.locationManager = [[CLLocationManager alloc ] init ];
61
- self.locationManager .delegate = self; // Tells the location manager to send updates to this object
62
- __locationStarted = NO ;
63
- __highAccuracyEnabled = NO ;
64
- self.locationData = nil ;
65
- }
66
- return self;
58
+ self.locationManager = [[CLLocationManager alloc ] init ];
59
+ self.locationManager .delegate = self; // Tells the location manager to send updates to this object
60
+ __locationStarted = NO ;
61
+ __highAccuracyEnabled = NO ;
62
+ self.locationData = nil ;
67
63
}
68
64
69
65
- (BOOL )isAuthorized
You can’t perform that action at this time.
0 commit comments