cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [3/6] js commit: overriding accelerometer object
Date Wed, 06 Jun 2012 22:25:39 GMT
overriding 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/2a1af34a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/2a1af34a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/2a1af34a

Branch: refs/heads/master
Commit: 2a1af34a5d3d89abbfad35f5fb11349a6ecda3fd
Parents: ae5ec03
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Wed Jun 6 15:11:52 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Wed Jun 6 15:11:52 2012 -0700

----------------------------------------------------------------------
 lib/bada/platform.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/2a1af34a/lib/bada/platform.js
----------------------------------------------------------------------
diff --git a/lib/bada/platform.js b/lib/bada/platform.js
index b4ee1c0..cfc6dc6 100644
--- a/lib/bada/platform.js
+++ b/lib/bada/platform.js
@@ -4,7 +4,14 @@ module.exports = {
     objects: {
         device: {
             path: 'cordova/plugin/bada/device'
-        }
+        },
+        navigator: {
+            children: {
+                accelerometer: {
+                    path: "cordova/plugin/bada/Accelerometer"
+                }
+            }
+        },
     },
     merges: {
         navigator: {


Mime
View raw message