cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [09/19] git commit: update firefoxos integration
Date Mon, 28 Oct 2013 22:11:46 GMT
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/master
Commit: fcc626a8ae049e7fe3a9322cafde6477da92204e
Parents: 53a2e82
Author: James Long <longster@gmail.com>
Authored: Fri Oct 18 00:15:26 2013 -0400
Committer: James Long <longster@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);


Mime
View raw message