Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B9399BBC for ; Wed, 22 May 2013 23:17:21 +0000 (UTC) Received: (qmail 20105 invoked by uid 500); 22 May 2013 23:17:21 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 20073 invoked by uid 500); 22 May 2013 23:17:21 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 19894 invoked by uid 99); 22 May 2013 23:17:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 23:17:20 +0000 Date: Wed, 22 May 2013 23:17:20 +0000 (UTC) From: "Michael Brooks (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-3460) Serialize module event hooks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michael Brooks created CB-3460: ---------------------------------- Summary: 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 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