You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/28 23:11:50 UTC
[13/19] git commit: adding timestamp to the response
adding timestamp to the response
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/470c7c61
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/470c7c61
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/470c7c61
Branch: refs/heads/master
Commit: 470c7c61e0a2474f457961da4f90a12f246cd068
Parents: 015e3f9
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Thu Oct 24 13:40:41 2013 +0200
Committer: Piotr Zalewa <pi...@zalewa.info>
Committed: Thu Oct 24 13:40:41 2013 +0200
----------------------------------------------------------------------
src/firefoxos/accelerometer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/470c7c61/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index d2fa658..8f33c51 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -4,7 +4,7 @@ var Accelerometer = {
return window.addEventListener('devicemotion', function(ev) {
var acc = ev.accelerationIncludingGravity;
acc.timestamp = new Date().getTime();
- success(ev.accelerationIncludingGravity);
+ success(acc);
}, false);
},