Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24AC4E8DF for ; Mon, 25 Feb 2013 13:41:02 +0000 (UTC) Received: (qmail 82069 invoked by uid 500); 25 Feb 2013 13:41:01 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 81767 invoked by uid 500); 25 Feb 2013 13:41:01 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 79499 invoked by uid 99); 25 Feb 2013 13:40:50 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 13:40:50 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 3AC5282F9E8; Mon, 25 Feb 2013 13:40:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mmocny@apache.org To: commits@cordova.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [20/50] js commit: [win8] modulemapper refactor for commandProxy. Message-Id: <20130225134050.3AC5282F9E8@tyr.zones.apache.org> Date: Mon, 25 Feb 2013 13:40:50 +0000 (UTC) [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 Authored: Fri Jan 25 15:55:15 2013 -0500 Committer: Andrew Grieve 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' - } - } - } } };