You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/02/21 13:58:15 UTC
[4/9] js commit: [win8] modulemapper refactor for commandProxy.
[win8] modulemapper refactor for commandProxy.
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/6174c139
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/6174c139
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/6174c139
Branch: refs/heads/cb2227
Commit: 6174c139a3e100dfa4f166eb46fd35e077efdd16
Parents: b045f29
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Feb 21 07:57:24 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Feb 21 07:57:24 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/6174c139/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'
- }
- }
- }
}
};