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/26 00:01:32 UTC

[1/6] git commit: adding timestamp to the response

Updated Branches:
  refs/heads/dev 9db09502e -> f3fe396bd


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/dev
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);
     },
 


[2/6] git commit: properly stop watching...

Posted by st...@apache.org.
properly stop watching...


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/4d202c1f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/4d202c1f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/4d202c1f

Branch: refs/heads/dev
Commit: 4d202c1f0d911c4f05469724db82eb03911f2415
Parents: 470c7c6
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Thu Oct 24 14:31:10 2013 +0200
Committer: Piotr Zalewa <pi...@zalewa.info>
Committed: Thu Oct 24 14:31:10 2013 +0200

----------------------------------------------------------------------
 src/firefoxos/accelerometer.js | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/4d202c1f/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index 8f33c51..b01f77c 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -1,15 +1,16 @@
 
+function listener function(ev) {
+    var acc = ev.accelerationIncludingGravity;
+    acc.timestamp = new Date().getTime();
+    success(acc);
+}
 var Accelerometer = {
     start: function start(success, error) {
-        return window.addEventListener('devicemotion', function(ev) {
-            var acc = ev.accelerationIncludingGravity;
-            acc.timestamp = new Date().getTime();
-            success(acc);
-        }, false);
+        return window.addEventListener('devicemotion', listener, false);
     },
 
     stop: function stop() {
-        window.removeEventListener('devicemotion');
+        window.removeEventListener('devicemotion', listener, false);
     }
 };
 


[5/6] git commit: tweak scoping

Posted by st...@apache.org.
tweak scoping


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/8a245a57
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/8a245a57
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/8a245a57

Branch: refs/heads/dev
Commit: 8a245a57cf90b2fb8c650103826b33d9b46b9b81
Parents: 4a3a33f
Author: James Long <lo...@gmail.com>
Authored: Thu Oct 24 19:15:29 2013 -0400
Committer: James Long <lo...@gmail.com>
Committed: Thu Oct 24 19:15:29 2013 -0400

----------------------------------------------------------------------
 src/firefoxos/accelerometer.js | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/8a245a57/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index 025b6c8..6d22509 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -1,12 +1,15 @@
-var listener;
+
+function listener(success, ev) {
+    var acc = ev.accelerationIncludingGravity;
+    acc.timestamp = new Date().getTime();
+    success(acc);
+}
+
 var Accelerometer = {
     start: function start(success, error) {
-        listener = function(ev) {
-            var acc = ev.accelerationIncludingGravity;
-            acc.timestamp = new Date().getTime();
-            success(acc);
-        }
-        return window.addEventListener('devicemotion', listener, false);
+        return window.addEventListener('devicemotion', function(ev) {
+            listener(success, ev);
+        }, false);
     },
 
     stop: function stop() {


[3/6] git commit: fixed the scope

Posted by st...@apache.org.
fixed the scope


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/2043d2e3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/2043d2e3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/2043d2e3

Branch: refs/heads/dev
Commit: 2043d2e3fecf06acfedd9096eebafa96d2162f3f
Parents: 4d202c1
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Thu Oct 24 18:23:44 2013 +0200
Committer: Piotr Zalewa <pi...@zalewa.info>
Committed: Thu Oct 24 18:23:44 2013 +0200

----------------------------------------------------------------------
 src/firefoxos/accelerometer.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/2043d2e3/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index b01f77c..025b6c8 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -1,11 +1,11 @@
-
-function listener function(ev) {
-    var acc = ev.accelerationIncludingGravity;
-    acc.timestamp = new Date().getTime();
-    success(acc);
-}
+var listener;
 var Accelerometer = {
     start: function start(success, error) {
+        listener = function(ev) {
+            var acc = ev.accelerationIncludingGravity;
+            acc.timestamp = new Date().getTime();
+            success(acc);
+        }
         return window.addEventListener('devicemotion', listener, false);
     },
 


[4/6] git commit: Merge pull request #1 from zalun/master

Posted by st...@apache.org.
Merge pull request #1 from zalun/master

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/4a3a33f3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/4a3a33f3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/4a3a33f3

Branch: refs/heads/dev
Commit: 4a3a33f3a515132c7c09e2bbc04be6a1a5b0cad2
Parents: 015e3f9 2043d2e
Author: James Long <lo...@gmail.com>
Authored: Thu Oct 24 15:26:05 2013 -0700
Committer: James Long <lo...@gmail.com>
Committed: Thu Oct 24 15:26:05 2013 -0700

----------------------------------------------------------------------
 src/firefoxos/accelerometer.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------



[6/6] git commit: Merge branch 'master' of github.com:jlongster/cordova-plugin-device-motion into dev

Posted by st...@apache.org.
Merge branch 'master' of github.com:jlongster/cordova-plugin-device-motion into dev


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/f3fe396b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/f3fe396b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/f3fe396b

Branch: refs/heads/dev
Commit: f3fe396bde11df9e618883ea22087978a2307e15
Parents: 9db0950 8a245a5
Author: Steven Gill <st...@gmail.com>
Authored: Fri Oct 25 14:38:14 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Fri Oct 25 14:38:14 2013 -0700

----------------------------------------------------------------------
 src/firefoxos/accelerometer.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------