[ 
https://issues.apache.org/jira/browse/CB-3460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13677737#comment-13677737
 ] 

ASF subversion and git services commented on CB-3460:
-----------------------------------------------------

Commit bb7c377be3244463c42480217d38a334c8b87b13 in branch refs/heads/2.8.x from 
Fil Maj
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=bb7c377 ]

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

                
> Serialize module event hooks
> ----------------------------
>
>                 Key: CB-3460
>                 URL: https://issues.apache.org/jira/browse/CB-3460
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.8.0
>            Reporter: Michael Brooks
>            Assignee: Filip Maj
>             Fix For: 2.8.0
>
>
> 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: http://www.atlassian.com/software/jira

Reply via email to