Skip to content
Permalink
Browse files
CB-8659: ios: 4.0.x Compatibility: Remove use of initWithWebView method
  • Loading branch information
clelland committed Mar 13, 2015
1 parent 72c4648 commit 50fd63d192a01fa2b76515714943fda44e67ef1d
Showing 1 changed file with 3 additions and 7 deletions.
@@ -129,14 +129,10 @@ - (void)stop:(CDVInvokedUrlCommand*)command
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceBatteryLevelDidChangeNotification object:nil];
}

- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView
- (void)pluginInitialize
{
self = (CDVBattery*)[super initWithWebView:theWebView];
if (self) {
self.state = UIDeviceBatteryStateUnknown;
self.level = -1.0;
}
return self;
self.state = UIDeviceBatteryStateUnknown;
self.level = -1.0;
}

- (void)dealloc

0 comments on commit 50fd63d

Please sign in to comment.