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

[8/8] ios commit: Add onReset to CDVAccelerometer.

Add onReset to CDVAccelerometer.


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/1a62a754
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/1a62a754
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/1a62a754

Branch: refs/heads/master
Commit: 1a62a754d93cc223b2bf5277ab179ac408b86b0d
Parents: fd72ae2
Author: Braden Shepherdson <br...@chromium.org>
Authored: Tue Sep 25 11:03:02 2012 -0400
Committer: Braden Shepherdson <br...@chromium.org>
Committed: Tue Sep 25 11:03:02 2012 -0400

----------------------------------------------------------------------
 CordovaLib/Classes/CDVAccelerometer.m |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/1a62a754/CordovaLib/Classes/CDVAccelerometer.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVAccelerometer.m b/CordovaLib/Classes/CDVAccelerometer.m
index 9e26014..9249c87 100644
--- a/CordovaLib/Classes/CDVAccelerometer.m
+++ b/CordovaLib/Classes/CDVAccelerometer.m
@@ -66,6 +66,11 @@
     }
 }
 
+- (void)onReset
+{
+    [self stop:nil];
+}
+
 - (void)stop:(CDVInvokedUrlCommand*)command
 {
     UIAccelerometer* theAccelerometer = [UIAccelerometer sharedAccelerometer];