You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/05/05 18:09:04 UTC

[04/49] git commit: fixed callbacks

fixed callbacks


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

Branch: refs/heads/cdvtest
Commit: 53a2e8225e8a36e86860af048b78fbd630111057
Parents: 3dad522
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Sat Sep 28 12:02:43 2013 +0200
Committer: Piotr Zalewa <pi...@zalewa.info>
Committed: Sat Sep 28 12:02:43 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/53a2e822/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index 696f1e5..b0f8b70 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -2,10 +2,10 @@ var firefoxos = require('cordova/platform');
 
 
 var Accelerometer = {
-    start: function start(accelerometerSuccess, accelerometerError) {
-        console.log('start watching acecelerometer');
+    start: function start(successCallback, errorCallback) {
+        console.log('start watching accelerometer');
         function accelerationCallback(deviceMotionEvent) {
-            accelerometerSuccess(deviceMotionEvent.acceleration);
+            successCallback(deviceMotionEvent.acceleration);
         }
         return document.addEventListener('devicemotion', accelerationCallback, false);
     },