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:09 UTC

[09/49] git commit: update firefoxos integration

update firefoxos integration


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

Branch: refs/heads/cdvtest
Commit: fcc626a8ae049e7fe3a9322cafde6477da92204e
Parents: 53a2e82
Author: James Long <lo...@gmail.com>
Authored: Fri Oct 18 00:15:26 2013 -0400
Committer: James Long <lo...@gmail.com>
Committed: Fri Oct 18 00:15:26 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/fcc626a8/src/firefoxos/accelerometer.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/accelerometer.js b/src/firefoxos/accelerometer.js
index b0f8b70..5ba0b7d 100644
--- a/src/firefoxos/accelerometer.js
+++ b/src/firefoxos/accelerometer.js
@@ -1,5 +1,3 @@
-var firefoxos = require('cordova/platform');
-
 
 var Accelerometer = {
     start: function start(successCallback, errorCallback) {
@@ -15,4 +13,5 @@ var Accelerometer = {
     }
 };
 
-firefoxos.registerPlugin('Accelerometer', Accelerometer);
+module.exports = Accelerometer;
+require('cordova/firefoxos/commandProxy').add('Accelerometer', Accelerometer);