You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Brooks (JIRA)" <ji...@apache.org> on 2013/06/18 22:34:20 UTC

[jira] [Created] (CB-3929) Missing options for hooks: before_prepare and after_prepare

Michael Brooks created CB-3929:
----------------------------------

             Summary: 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