cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-5770 plugman prepare.js script content wrapping no longer allows ending parens/braces to be commented out from end of line comment
Date Sat, 11 Jan 2014 01:10:07 GMT
Updated Branches:
  refs/heads/master 2396cd70c -> 401f790ff


CB-5770 plugman prepare.js script content wrapping no longer allows ending parens/braces to
be commented out from end of line comment


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

Branch: refs/heads/master
Commit: 401f790ff874f19f24a95cf4ffd2959f2dad3ff2
Parents: 2396cd7
Author: Josh Bavari <josh@raisemore.com>
Authored: Fri Jan 10 15:24:52 2014 -0600
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 10 20:09:26 2014 -0500

----------------------------------------------------------------------
 src/prepare.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/401f790f/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 3543499..7ffc938 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -163,7 +163,7 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir,
www_
     
                 var fsPath = path.join.apply(path, pathParts);
                 var scriptContent = fs.readFileSync(path.join(pluginDir, fsPath), 'utf-8');
-                scriptContent = 'cordova.define("' + moduleName + '", function(require, exports,
module) {' + scriptContent + '});\n';
+                scriptContent = 'cordova.define("' + moduleName + '", function(require, exports,
module) { ' + scriptContent + '\n});\n';
                 fs.writeFileSync(path.join(platformPluginsDir, plugin_id, fsPath), scriptContent,
'utf-8');
                 if(platform == 'wp7' || platform == 'wp8' || platform == "windows8") {
                     wp_csproj.addSourceFile(path.join('www', 'plugins', plugin_id, fsPath));


Mime
View raw message