incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [2/6] js commit: updating accelerometer object
Date Wed, 06 Jun 2012 22:25:39 GMT
updating accelerometer object


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/1d778ae1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/1d778ae1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/1d778ae1

Branch: refs/heads/master
Commit: 1d778ae19396ed44a459faa3849f97fa9e13a0fc
Parents: 2a1af34
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Wed Jun 6 15:13:39 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Wed Jun 6 15:13:39 2012 -0700

----------------------------------------------------------------------
 lib/bada/plugin/bada/Accelerometer.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/1d778ae1/lib/bada/plugin/bada/Accelerometer.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/Accelerometer.js b/lib/bada/plugin/bada/Accelerometer.js
index f3435b0..3ab806e 100644
--- a/lib/bada/plugin/bada/Accelerometer.js
+++ b/lib/bada/plugin/bada/Accelerometer.js
@@ -1,7 +1,7 @@
 var Acceleration = require('cordova/plugin/Acceleration');
 
 module.exports = {
-    getAcceleration: function(successCallback, errorCallback, options) {
+    getCurrentAcceleration: function(successCallback, errorCallback, options) {
         var success = function(acceleration) {
             console.log("Accelermometer:getAcceleration:success");
             var accel = new Acceleration(acceleration.xAxis, acceleration.yAxis, acceleration.zAxis);
@@ -17,7 +17,6 @@ module.exports = {
         };
         deviceapis.accelerometer.getCurrentAcceleration(success, error);
     },
-    // XXX: unused with cordovaJS
     watchAcceleration: function(successCallback, errorCallback, options) {
         var success = function(acceleration) {
             console.log("accelerometer:watchAcceleration:success");


Mime
View raw message