cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brooks (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-3929) Missing options for hooks: before_prepare and after_prepare
Date Tue, 18 Jun 2013 20:34:20 GMT
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

Mime
View raw message