removing doWrap from prepare

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

Branch: refs/heads/master
Commit: 4f1851075917a06502a3047ddf8cf1857c1d262e
Parents: c0eee27
Author: Anis Kadri <[email protected]>
Authored: Fri Jun 13 16:43:25 2014 -0700
Committer: Anis Kadri <[email protected]>
Committed: Fri Jun 13 16:43:25 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/plugman.js | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/4f185107/cordova-lib/src/plugman/plugman.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/plugman.js 
b/cordova-lib/src/plugman/plugman.js
index 8ff8c82..0c0a629 100644
--- a/cordova-lib/src/plugman/plugman.js
+++ b/cordova-lib/src/plugman/plugman.js
@@ -65,7 +65,7 @@ plugman = {
 addProperty(plugman, 'install', './install', true);
 addProperty(plugman, 'uninstall', './uninstall', true);
 addProperty(plugman, 'fetch', './fetch', true);
-addProperty(plugman, 'prepare', './prepare', true);
+addProperty(plugman, 'prepare', './prepare');
 addProperty(plugman, 'config', './config', true);
 addProperty(plugman, 'owner', './owner', true);
 addProperty(plugman, 'adduser', './adduser', true);
@@ -91,8 +91,9 @@ plugman.commands =  {
         if(!cli_opts.platform || !cli_opts.project || !cli_opts.plugin) {
             return console.log(plugman.help());
         }
-        cli_opts.browserify === true ?  addProperty(plugman, 'prepare', 
'./prepare-browserify') :
-                                        addProperty(plugman, 'prepare', 
'./prepare');
+        if(cli_opts.browserify === true) {
+            plugman.prepare = require('./prepare-browserify');
+        }
         var cli_variables = {}
         if (cli_opts.variable) {
             cli_opts.variable.forEach(function (variable) {
@@ -122,8 +123,9 @@ plugman.commands =  {
             return console.log(plugman.help());
         }
         
-        cli_opts.browserify === true ?  addProperty(plugman, 'prepare', 
'./prepare-browserify') :
-                                        addProperty(plugman, 'prepare', 
'./prepare');
+        if(cli_opts.browserify === true) {
+            plugman.prepare = require('./prepare-browserify');
+        }
 
         var p = Q();
         cli_opts.plugin.forEach(function (pluginSrc) {

Reply via email to