cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [04/19] git commit: fixed callbacks
Date Mon, 28 Oct 2013 22:11:41 GMT
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/master
Commit: 53a2e8225e8a36e86860af048b78fbd630111057
Parents: 3dad522
Author: Piotr Zalewa <piotr@zalewa.info>
Authored: Sat Sep 28 12:02:43 2013 +0200
Committer: Piotr Zalewa <piotr@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);
     },


Mime
View raw message