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/03/20 16:49:23 UTC

[39/40] js commit: [windowsphone] modulemapper refactor for CordovaCommandResult

[windowsphone] modulemapper refactor for CordovaCommandResult


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

Branch: refs/heads/cb2227
Commit: ff4bd1e03e97334a6233553f5fc1fcf0b8d244b4
Parents: f08ba57
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Feb 21 07:57:34 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Mar 20 11:44:07 2013 -0400

----------------------------------------------------------------------
 lib/windowsphone/platform.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/ff4bd1e0/lib/windowsphone/platform.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/platform.js b/lib/windowsphone/platform.js
index 2fb103c..449a954 100644
--- a/lib/windowsphone/platform.js
+++ b/lib/windowsphone/platform.js
@@ -30,6 +30,8 @@ module.exports = {
         modulemapper.loadMatchingModules(/cordova.*\/plugininit$/);
 
         modulemapper.loadMatchingModules(/cordova.*\/symbols$/);
+        modulemapper.clobbers('/cordova/plugin/windowsphone/CordovaCommandResult', 'CordovaCommandResult');
+
         modulemapper.mapModules(window);
 
         // Inject a listener for the backbutton, and tell native to override the flag (true/false) when we have 1 or more, or 0, listeners
@@ -39,9 +41,6 @@ module.exports = {
         };
     },
     clobbers: {
-        CordovaCommandResult: {
-            path:"cordova/plugin/windowsphone/CordovaCommandResult"
-        },
         FileTransfer: {
             path: 'cordova/plugin/windowsphone/FileTransfer'
         },