cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [6/24] js commit: [all] modulemapper refactor for accelerometer.
Date Tue, 12 Feb 2013 19:32:42 GMT
[all] modulemapper refactor for accelerometer.

https://issues.apache.org/jira/browse/CB-2227


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

Branch: refs/heads/master
Commit: c9cb3f5672b4a9c55c9e30864728f3c2ff5c0098
Parents: 6fbcdc8
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 24 15:54:22 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 13:44:49 2013 -0500

----------------------------------------------------------------------
 lib/bada/platform.js                       |    3 --
 lib/bada/plugin/accelerometer/symbols.js   |   25 +++++++++++++++++++++++
 lib/common/common.js                       |    6 -----
 lib/common/plugin/accelerometer/symbols.js |   25 +++++++++++++++++++++++
 4 files changed, 50 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c9cb3f56/lib/bada/platform.js
----------------------------------------------------------------------
diff --git a/lib/bada/platform.js b/lib/bada/platform.js
index 1f96cfa..0ef3261 100644
--- a/lib/bada/platform.js
+++ b/lib/bada/platform.js
@@ -33,9 +33,6 @@ module.exports = {
         },
         navigator: {
             children: {
-                accelerometer: {
-                    path: "cordova/plugin/bada/Accelerometer"
-                },
                 notification: {
                     path: "cordova/plugin/bada/Notification"
                 }

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c9cb3f56/lib/bada/plugin/accelerometer/symbols.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/accelerometer/symbols.js b/lib/bada/plugin/accelerometer/symbols.js
new file mode 100644
index 0000000..c6e1ecf
--- /dev/null
+++ b/lib/bada/plugin/accelerometer/symbols.js
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.defaults('cordova/plugin/Acceleration', 'Acceleration');
+modulemapper.clobbers('cordova/plugin/bada/Accelerometer', 'navigator.accelerometer');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c9cb3f56/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index 8472fc5..fe55399 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -47,9 +47,6 @@ module.exports = {
                 notification: {
                     path: 'cordova/plugin/notification'
                 },
-                accelerometer: {
-                    path: 'cordova/plugin/accelerometer'
-                },
                 battery: {
                     path: 'cordova/plugin/battery'
                 },
@@ -88,9 +85,6 @@ module.exports = {
                 }
             }
         },
-        Acceleration: {
-            path: 'cordova/plugin/Acceleration'
-        },
         Camera:{
             path: 'cordova/plugin/CameraConstants'
         },

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c9cb3f56/lib/common/plugin/accelerometer/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/accelerometer/symbols.js b/lib/common/plugin/accelerometer/symbols.js
new file mode 100644
index 0000000..1c6818e
--- /dev/null
+++ b/lib/common/plugin/accelerometer/symbols.js
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.defaults('cordova/plugin/Acceleration', 'Acceleration');
+modulemapper.defaults('cordova/plugin/accelerometer', 'navigator.accelerometer');


Mime
View raw message