Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.0, 3.2.0, 3.3.0
-
None
-
Mac OSX v10.8.5
Description
When adding plugins with plugman, the process wraps the containing javascript content with the following:
cordova.define("moduleName", function(require, exports, module)
{ scriptContent }); If a plugin JS file has a comment at the end of the file that plugman is wrapping with a cordova.define statement, the string that is concatenated at the end, "});", may be commented out.
For example, given the original plugin file before preparing:
var module =
{ .. code .. };//Some comment comes here
The file after preparing:
cordova.define("moduleName", function(require, exports, module) {
var module = { .. code .. }
;
//Some comment comes here });
The fix is to add a new line before placing the end bracket and parenthesis.