cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [5/6] git commit: Fixed problem with watchCompass if pressed twice
Date Fri, 05 Sep 2014 17: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/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 <smcooper@us.ibm.com>
Authored: Wed Sep 3 11:19:28 2014 -0400
Committer: Anis Kadri <anis@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;


Mime
View raw message