cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@apache.org
Subject [3/31] js commit: [win8] modulemapper refactor for commandProxy.
Date Wed, 27 Feb 2013 21:09:56 GMT
[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/next
Commit: 02677aff6ebe88564184fadef0e857c002e8b5e2
Parents: 4c8d451
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 25 15:55:15 2013 -0500
Committer: Andrew Grieve <agrieve@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'
-                }
-            }
-        }
     }
 };


Mime
View raw message