You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2012/09/25 22:14:00 UTC
[4/8] ios commit: Add onReset for CDVLocation.
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 <br...@chromium.org>
Authored: Tue Sep 25 13:56:50 2012 -0400
Committer: Braden Shepherdson <br...@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 -