cordova-commits mailing list archives

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

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/50c91559
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/50c91559
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/50c91559

Branch: refs/heads/master
Commit: 50c91559233f912a0c261bf63223c42994606030
Parents: c9cb3f5
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 24 15:58:00 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 13:44:49 2013 -0500

----------------------------------------------------------------------
 lib/common/common.js                 |    3 ---
 lib/common/plugin/battery/symbols.js |   24 ++++++++++++++++++++++++
 2 files changed, 24 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/50c91559/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index fe55399..f4f298b 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -47,9 +47,6 @@ module.exports = {
                 notification: {
                     path: 'cordova/plugin/notification'
                 },
-                battery: {
-                    path: 'cordova/plugin/battery'
-                },
                 camera:{
                     path: 'cordova/plugin/Camera'
                 },

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/50c91559/lib/common/plugin/battery/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/battery/symbols.js b/lib/common/plugin/battery/symbols.js
new file mode 100644
index 0000000..729830c
--- /dev/null
+++ b/lib/common/plugin/battery/symbols.js
@@ -0,0 +1,24 @@
+/*
+ * 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/battery', 'navigator.battery');


Mime
View raw message