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

[5/6] 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/ce6ab122
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/ce6ab122
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/ce6ab122

Branch: refs/heads/master
Commit: ce6ab122d337ad468715e5df27d67b3e443c2ade
Parents: fc3837d
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Wed Sep 3 11:19:28 2014 -0400
Committer: Anis Kadri <an...@apache.org>
Committed: Fri Sep 5 10:58:56 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/ce6ab122/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;