[
https://issues.apache.org/jira/browse/CB-3929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13687226#comment-13687226
]
ASF subversion and git services commented on CB-3929:
-----------------------------------------------------
Commit f53f6ea321167f66458a53a56fb8a484cb72ea89 in branch refs/heads/master2
from Fil Maj
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=f53f6ea ]
2.8.20. [CB-3929] Fixed data object passed into module-level hooks. Also added
"paths" property to data object that prepare sends to the module-level hooks
> Missing options for hooks: before_prepare and after_prepare
> -----------------------------------------------------------
>
> Key: CB-3929
> URL: https://issues.apache.org/jira/browse/CB-3929
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.8.0
> Environment: cordova-cli 2.8.19
> Reporter: Michael Brooks
> Assignee: Filip Maj
>
> Tested on Cordova {{2.8.19}}.
> The hooks {{before_prepare}} and {{after_prepare}} [intend to pass the
> following options
> data|https://github.com/apache/cordova-cli/blob/master2/src/prepare.js#L65-L79]:
> {code}
> { platforms: [....] }
> {code}
> However, the hooks do not fire with the above data. Instead, the data object
> is the {{process}} object.
> Examples:
> {code}
> 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();
> });
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira