if(evt.absolute === true && evt.alpha !== null) { heading = compassHeading(evt.alpha, evt.beta, evt.gamma); }