incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject docs commit: Fixed CB-418 - Docs for Accelerometer needs updating
Date Fri, 06 Apr 2012 18:54:58 GMT
Updated Branches:
  refs/heads/master 6faf51d56 -> 0afe03468


Fixed CB-418 - Docs for Accelerometer needs updating


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/0afe0346
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/0afe0346
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/0afe0346

Branch: refs/heads/master
Commit: 0afe03468a23bea7421adac5b90892197ca3848b
Parents: 6faf51d
Author: shazron <shazron@gmail.com>
Authored: Fri Apr 6 11:54:48 2012 -0700
Committer: shazron <shazron@gmail.com>
Committed: Fri Apr 6 11:54:48 2012 -0700

----------------------------------------------------------------------
 .../accelerometer/acceleration/acceleration.md     |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/0afe0346/docs/en/edge/cordova/accelerometer/acceleration/acceleration.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/accelerometer/acceleration/acceleration.md b/docs/en/edge/cordova/accelerometer/acceleration/acceleration.md
index 580e202..a656545 100644
--- a/docs/en/edge/cordova/accelerometer/acceleration/acceleration.md
+++ b/docs/en/edge/cordova/accelerometer/acceleration/acceleration.md
@@ -6,23 +6,23 @@ Contains `Accelerometer` data captured at a specific point in time.
 Properties
 ----------
 
-- __x:__ Amount of motion on the x-axis. Range [0, 1] (`Number`)
-- __y:__ Amount of motion on the y-axis. Range [0, 1] (`Number`)
-- __z:__ Amount of motion on the z-axis. Range [0, 1] (`Number`)
+- __x:__  Amount of acceleration on the x-axis. (in m/s^2) (`Number`)
+- __y:__  Amount of acceleration on the y-axis. (in m/s^2) (`Number`)
+- __z:__  Amount of acceleration on the z-axis. (in m/s^2) (`Number`)
 - __timestamp:__ Creation timestamp in milliseconds. (`DOMTimeStamp`)
 
 Description
 -----------
 
-This object is created and populated by Cordova, and returned by an `Accelerometer` method.
+This object is created and populated by Cordova, and returned by an `Accelerometer` method.
The x, y, z acceleration values include the effect of gravity (9.81 m/s^2), so at when a device
is lying flat on a table facing up, the value returned should be x=0, y=0, z=9.81.
 
 Supported Platforms
 -------------------
 
 - Android
 - BlackBerry WebWorks (OS 5.0 and higher)
-- iPhone
-- Windows Phone 7 ( Mango )
+- iOS
+- Windows Phone 7 (Mango)
 
 Quick Example
 -------------
@@ -63,7 +63,7 @@ Full Example
 
         // onSuccess: Get a snapshot of the current acceleration
         //
-        function onSuccess() {
+        function onSuccess(acceleration) {
             alert('Acceleration X: ' + acceleration.x + '\n' +
                   'Acceleration Y: ' + acceleration.y + '\n' +
                   'Acceleration Z: ' + acceleration.z + '\n' +


Mime
View raw message