You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2014/09/03 18:59:11 UTC

[2/2] git commit: Fixed problem with watchCompass if pressed twice

Fixed problem with watchCompass if pressed twice

Stop any existing watch before starting a new one.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/56654b0d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/56654b0d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/56654b0d

Branch: refs/heads/master
Commit: 56654b0d8baa36ee524bd8d9122e9c836a140428
Parents: c1a0bf1
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Wed Sep 3 11:19:28 2014 -0400
Committer: Marcel Kinard <cm...@gmail.com>
Committed: Wed Sep 3 12:58:42 2014 -0400

----------------------------------------------------------------------
 tests/tests.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/56654b0d/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 4893ea9..c5ddc59 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -162,6 +162,9 @@ exports.defineManualTests = function (contentEl, createActionButton) {
             setCompassStatus(e);
         };
 
+        // Stop compass if running
+        stopCompass();
+
         // Update heading every 1 sec
         var opt = {};
         opt.frequency = 1000;