fixed bug with accelerometer z value not being set #36

This commit is contained in:
Dave Johnson 2010-07-12 14:08:09 -07:00
parent d2048a7c5a
commit 6d60a2b012

View File

@ -48,11 +48,10 @@ Accelerometer.prototype.getCurrentAcceleration = function(successCallback, error
Accelerometer.prototype.gotAccel = function(key, x, y, z)
{
console.log('we won');
var a = new Acceleration(x,y,z);
a.x = x;
a.y = y;
a.x = z;
a.z = z;
a.win = accelListeners[key].win;
a.fail = accelListeners[key].fail;
this.timestamp = new Date().getTime();