You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/03/06 01:13:36 UTC

[09/13] git commit: formatting / readability

formatting / readability


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

Branch: refs/heads/master
Commit: dc6e49fb1512d8deadb462b0ced8f54e372d44aa
Parents: 5332994
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Mar 5 14:57:08 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Mar 5 14:57:08 2014 -0800

----------------------------------------------------------------------
 src/uninstall.js | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/dc6e49fb/src/uninstall.js
----------------------------------------------------------------------
diff --git a/src/uninstall.js b/src/uninstall.js
index 8b6784b..528b47a 100644
--- a/src/uninstall.js
+++ b/src/uninstall.js
@@ -144,6 +144,8 @@ function handleUninstall(actions, platform, plugin_id, plugin_et, project_dir, w
     www_dir = www_dir || handler.www_dir(project_dir);
     require('../plugman').emit('log', 'Uninstalling ' + plugin_id + ' from ' + platform);
 
+    console.log("in uninstall.js handleUninstall plugin_dir = " + plugin_dir);
+
     var assets = plugin_et.findall('./asset');
     if (platformTag) {
         var sourceFiles = platformTag.findall('./source-file'),
@@ -155,24 +157,39 @@ function handleUninstall(actions, platform, plugin_id, plugin_et, project_dir, w
 
         // queue up native stuff
         sourceFiles && sourceFiles.forEach(function(source) {
-            actions.push(actions.createAction(handler["source-file"].uninstall, [source, project_dir, plugin_id], handler["source-file"].install, [source, plugin_dir, project_dir, plugin_id]));
+            actions.push(actions.createAction(handler["source-file"].uninstall, 
+                                             [source, project_dir, plugin_id], 
+                                             handler["source-file"].install, 
+                                             [source, plugin_dir, project_dir, plugin_id]));
         });
 
         headerFiles && headerFiles.forEach(function(header) {
-            actions.push(actions.createAction(handler["header-file"].uninstall, [header, project_dir, plugin_id], handler["header-file"].install, [header, plugin_dir, project_dir, plugin_id]));
+            actions.push(actions.createAction(handler["header-file"].uninstall, 
+                                             [header, project_dir, plugin_id], 
+                                             handler["header-file"].install, 
+                                             [header, plugin_dir, project_dir, plugin_id]));
         });
 
         resourceFiles && resourceFiles.forEach(function(resource) {
-            actions.push(actions.createAction(handler["resource-file"].uninstall, [resource, project_dir, plugin_id], handler["resource-file"].install, [resource, plugin_dir, project_dir]));
+            actions.push(actions.createAction(handler["resource-file"].uninstall, 
+                                              [resource, project_dir, plugin_id], 
+                                              handler["resource-file"].install, 
+                                              [resource, plugin_dir, project_dir]));
         });
 
         // CB-5238 custom frameworks only
         frameworkFiles && frameworkFiles.forEach(function(framework) {
-            actions.push(actions.createAction(handler["framework"].uninstall, [framework, project_dir, plugin_id], handler["framework"].install, [framework, plugin_dir, project_dir]));
+            actions.push(actions.createAction(handler["framework"].uninstall, 
+                                              [framework, project_dir, plugin_id], 
+                                              handler["framework"].install, 
+                                              [framework, plugin_dir, project_dir]));
         });
 
         libFiles && libFiles.forEach(function(source) {
-            actions.push(actions.createAction(handler["lib-file"].uninstall, [source, project_dir, plugin_id], handler["lib-file"].install, [source, plugin_dir, project_dir, plugin_id]));
+            actions.push(actions.createAction(handler["lib-file"].uninstall, 
+                                              [source, project_dir, plugin_id], 
+                                              handler["lib-file"].install, 
+                                              [source, plugin_dir, project_dir, plugin_id]));
         });
     }