You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2013/02/25 14:40:50 UTC

[20/50] js commit: [win8] modulemapper refactor for commandProxy.

[win8] modulemapper refactor for commandProxy.

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

Branch: refs/heads/multipart_plugin_result
Commit: 02677aff6ebe88564184fadef0e857c002e8b5e2
Parents: 4c8d451
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Jan 25 15:55:15 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Feb 20 15:13:26 2013 -0500

----------------------------------------------------------------------
 lib/windows8/platform.js |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/02677aff/lib/windows8/platform.js
----------------------------------------------------------------------
diff --git a/lib/windows8/platform.js b/lib/windows8/platform.js
index f3626db..211e62a 100755
--- a/lib/windows8/platform.js
+++ b/lib/windows8/platform.js
@@ -21,7 +21,8 @@
 
 var cordova = require('cordova'),
     exec = require('cordova/exec'),
-    channel = cordova.require("cordova/channel");
+    channel = cordova.require("cordova/channel"),
+    modulemapper = require('cordova/modulemapper');
 
 /*
  * Define native implementations ( there is no native layer, so need to make sure the proxies are there )
@@ -31,11 +32,12 @@ modulemapper.loadMatchingModules(/cordova.*\/windows\/.*Proxy$/);
 module.exports = {
     id: "windows8",
     initialize:function() {
-        var modulemapper = require('cordova/modulemapper');
 
         modulemapper.loadMatchingModules(/cordova.*\/plugininit$/);
 
         modulemapper.loadMatchingModules(/cordova.*\/symbols$/);
+        modulemapper.clobbers('/cordova/commandProxy', 'cordova.commandProxy');
+
         modulemapper.mapModules(window);
 
         var onWinJSReady = function () {
@@ -66,15 +68,5 @@ module.exports = {
         else {
             onWinJSReady();
         }
-    },
-    clobbers: {
-        cordova: {
-            path: 'cordova',
-            children: {
-                commandProxy: {
-                    path: 'cordova/commandProxy'
-                }
-            }
-        }
     }
 };