cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [13/19] git commit: adding timestamp to the response
Date Mon, 28 Oct 2013 22:11:50 GMT
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 <piotr@zalewa.info>
Authored: Thu Oct 24 13:40:41 2013 +0200
Committer: Piotr Zalewa <piotr@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);
     },
 


Mime
View raw message