Add onReset for CDVLocation.
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/17930aba Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/17930aba Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/17930aba Branch: refs/heads/master Commit: 17930abaac24d4976d90bc7d120433732c41e499 Parents: bdcf8e4 Author: Braden Shepherdson <bra...@chromium.org> Authored: Tue Sep 25 13:56:50 2012 -0400 Committer: Braden Shepherdson <bra...@chromium.org> Committed: Tue Sep 25 13:56:50 2012 -0400 ---------------------------------------------------------------------- CordovaLib/Classes/CDVLocation.m | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/17930aba/CordovaLib/Classes/CDVLocation.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVLocation.m b/CordovaLib/Classes/CDVLocation.m index cdf6fb6..9d2dd60 100644 --- a/CordovaLib/Classes/CDVLocation.m +++ b/CordovaLib/Classes/CDVLocation.m @@ -592,6 +592,14 @@ self.locationManager.delegate = nil; } +- (void)onReset +{ + [self _stopLocation]; + [self.locationManager stopUpdatingHeading]; + self.headingData = nil; +} + + @end #pragma mark -