cordova-commits mailing list archives

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

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

Branch: refs/heads/symbolmapping
Commit: 9e65e7545a739c54d83e45ad73ff031203664d07
Parents: 34ab9b3
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 25 13:49:57 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 13:44:50 2013 -0500

----------------------------------------------------------------------
 lib/common/common.js                       |   27 -----------------------
 lib/common/plugin/globalization/symbols.js |    3 +-
 lib/common/plugin/networkstatus/symbols.js |   26 ++++++++++++++++++++++
 lib/common/plugin/splashscreen/symbols.js  |   24 ++++++++++++++++++++
 4 files changed, 52 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/9e65e754/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index 37f233d..a47c5f3 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -39,35 +39,8 @@ module.exports = {
                 }
             }
         },
-        navigator: {
-            children: {
-                network: {
-                    children: {
-                        connection: {
-                            path: 'cordova/plugin/network',
-                            deprecated: 'navigator.network.connection is deprecated. Use
navigator.connection instead.'
-                        }
-                    }
-                },
-                splashscreen: {
-                    path: 'cordova/plugin/splashscreen'
-                }
-            }
-        },
-        Connection: {
-            path: 'cordova/plugin/Connection'
-        },
         device: {
             path: 'cordova/plugin/device'
         }
-    },
-    clobbers: {
-        navigator: {
-            children: {
-                connection: {
-                    path: 'cordova/plugin/network'
-                }
-            }
-        }
     }
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/9e65e754/lib/common/plugin/globalization/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/globalization/symbols.js b/lib/common/plugin/globalization/symbols.js
index 064d1a0..8ccf1b2 100644
--- a/lib/common/plugin/globalization/symbols.js
+++ b/lib/common/plugin/globalization/symbols.js
@@ -21,4 +21,5 @@
 
 var modulemapper = require('cordova/modulemapper');
 
-modulemapper.defaults('cordova/plugin/globalization', 'navigator.globalization');
+modulemapper.clobbers('cordova/plugin/globalization', 'navigator.globalization');
+modulemapper.clobbers('cordova/plugin/GlobalizationError', 'GlobalizationError');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/9e65e754/lib/common/plugin/networkstatus/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/networkstatus/symbols.js b/lib/common/plugin/networkstatus/symbols.js
new file mode 100644
index 0000000..8ca64c1
--- /dev/null
+++ b/lib/common/plugin/networkstatus/symbols.js
@@ -0,0 +1,26 @@
+/*
+ * 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.clobbers('cordova/plugin/network', 'navigator.network.connection', 'navigator.network.connection
is deprecated. Use navigator.connection instead.');
+modulemapper.clobbers('cordova/plugin/network', 'navigator.connection');
+modulemapper.defaults('cordova/plugin/Connection', 'Connection');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/9e65e754/lib/common/plugin/splashscreen/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/splashscreen/symbols.js b/lib/common/plugin/splashscreen/symbols.js
new file mode 100644
index 0000000..bcca25e
--- /dev/null
+++ b/lib/common/plugin/splashscreen/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.clobbers('cordova/plugin/splashscreen', 'navigator.splashscreen');


Mime
View raw message