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

View File

@ -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") {