Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
-
cordova-cli 2.8.19
Description
Tested on Cordova 2.8.19.
The hooks before_prepare and after_prepare intend to pass the following options data:
{ platforms: [....] }
However, the hooks do not fire with the above data. Instead, the data object is the process object.
Examples:
cordova.on('before_prepare', function(data, done) { console.log(data.platforms); // undefined done(); }); cordova.on('after_prepare', function(data, done) { console.log(data.platforms); // undefined done(); });