Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40AD818DB7 for ; Mon, 1 Feb 2016 17:26:07 +0000 (UTC) Received: (qmail 57652 invoked by uid 500); 1 Feb 2016 17:25:56 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 57584 invoked by uid 500); 1 Feb 2016 17:25:55 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 57477 invoked by uid 99); 1 Feb 2016 17:25:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2016 17:25:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C9191DFF85; Mon, 1 Feb 2016 17:25:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mihaic@apache.org To: commits@flex.apache.org Date: Mon, 01 Feb 2016 17:25:56 -0000 Message-Id: <35769237406a438c979b7500b9c05b9e@git.apache.org> In-Reply-To: <350973ef77d146d3a4c9de7aa5ec18d1@git.apache.org> References: <350973ef77d146d3a4c9de7aa5ec18d1@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: [flex-sdk] [refs/heads/develop] - FLEX-35025 Now all ValidationResultEvents are passed through handleResults(). FLEX-35025 Now all ValidationResultEvents are passed through handleResults(). Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/99be0d34 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/99be0d34 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/99be0d34 Branch: refs/heads/develop Commit: 99be0d34018cdbd6cf640beaeb0758f0d474777c Parents: a9eebe6 Author: Mihai Chira Authored: Mon Feb 1 18:13:15 2016 +0100 Committer: Mihai Chira Committed: Mon Feb 1 18:13:15 2016 +0100 ---------------------------------------------------------------------- frameworks/projects/framework/src/mx/validators/Validator.as | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/99be0d34/frameworks/projects/framework/src/mx/validators/Validator.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/framework/src/mx/validators/Validator.as b/frameworks/projects/framework/src/mx/validators/Validator.as index eabe58f..f526b5b 100644 --- a/frameworks/projects/framework/src/mx/validators/Validator.as +++ b/frameworks/projects/framework/src/mx/validators/Validator.as @@ -919,11 +919,10 @@ public class Validator extends EventDispatcher implements IMXMLObject,IValidator { // We assume if value is null and required is false that // validation was successful. - var resultEvent:ValidationResultEvent = - new ValidationResultEvent(ValidationResultEvent.VALID); + var resultEvent:ValidationResultEvent = handleResults(null); if (!suppressEvents && _enabled) { - dispatchEvent(resultEvent); + dispatchEvent(resultEvent); } return resultEvent; } @@ -1080,7 +1079,7 @@ public class Validator extends EventDispatcher implements IMXMLObject,IValidator { var resultEvent:ValidationResultEvent; - if (errorResults.length > 0) + if (errorResults != null && errorResults.length > 0) { resultEvent = new ValidationResultEvent(ValidationResultEvent.INVALID);