cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (CB-3460) Serialize module event hooks
Date Fri, 07 Jun 2013 01:04:21 GMT


ASF subversion and git services commented on CB-3460:

Commit f23c68b17ed66bc8c1d7d0f290e8cd4b24382656 in branch refs/heads/master2 from Fil Maj
[;h=f23c68b ]

npm version 2.8.11. [CB-3460] Serializing event hooks now fixed.

> Serialize module event hooks
> ----------------------------
>                 Key: CB-3460
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.8.0
>            Reporter: Michael Brooks
>            Assignee: Filip Maj
> When using {{cordova-cli}} as a module, a task execute immediately and does not wait
for each event hook to complete.
> We need to update the hook module to serialize each listener subscribed to an event hook.
A {{done}} callback can be passed into each event listener to support asynchronous hooks.
> {code}
> cordova.on('before_build', function(data, done) {
>    // do something
>    done();
> });
> {code}
> There is no need to update the script hooks because they currently wait for each process
to exit before continuing.

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:

View raw message