4
0
mirror of https://github.com/apache/cordova-android.git synced 2025-04-09 08:33:08 +08:00

Fixing compass so it actually works

This commit is contained in:
Joe Bowser 2010-06-11 14:19:37 -07:00
parent bde54704d3
commit e5f03b6aed

@ -25,7 +25,7 @@ function Compass() {
*/
Compass.prototype.getCurrentHeading = function(successCallback, errorCallback, options) {
if (this.lastHeading == null) {
this.start(options);
CompassHook.start();
}
else
if (typeof successCallback == "function") {