cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [5/9] js commit: [windowsphone] modulemapper refactor for console.
Date Wed, 03 Apr 2013 00:26:27 GMT
[windowsphone] modulemapper refactor for console.


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

Branch: refs/heads/master
Commit: 66578975a57d4a9895b41108edd684b35d43f113
Parents: f2e1c67
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Feb 21 07:57:28 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Apr 2 20:24:59 2013 -0400

----------------------------------------------------------------------
 lib/windowsphone/platform.js                       |   11 +-----
 .../plugin/windowsphone/console/symbols.js         |   25 +++++++++++++++
 2 files changed, 27 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/66578975/lib/windowsphone/platform.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/platform.js b/lib/windowsphone/platform.js
index 6f26531..2fb103c 100644
--- a/lib/windowsphone/platform.js
+++ b/lib/windowsphone/platform.js
@@ -39,15 +39,8 @@ module.exports = {
         };
     },
     clobbers: {
-        navigator: {
-            children: {
-                console: {
-                    path: "cordova/plugin/windowsphone/console"
-                }
-            }
-        },
-        console:{
-          path: "cordova/plugin/windowsphone/console"
+        CordovaCommandResult: {
+            path:"cordova/plugin/windowsphone/CordovaCommandResult"
         },
         FileTransfer: {
             path: 'cordova/plugin/windowsphone/FileTransfer'

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


Mime
View raw message