cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject [2/2] git commit: Fixed problem with watchCompass if pressed twice
Date Wed, 03 Sep 2014 16:59:11 GMT
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 <smcooper@us.ibm.com>
Authored: Wed Sep 3 11:19:28 2014 -0400
Committer: Marcel Kinard <cmarcelk@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;


Mime
View raw message