Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A988C200C16 for ; Thu, 9 Feb 2017 12:34:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A8197160B50; Thu, 9 Feb 2017 11:34:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1875160B4C for ; Thu, 9 Feb 2017 12:34:23 +0100 (CET) Received: (qmail 27671 invoked by uid 500); 9 Feb 2017 11:34:23 -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 27663 invoked by uid 99); 9 Feb 2017 11:34:23 -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; Thu, 09 Feb 2017 11:34:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 01BC4DFC9D; Thu, 9 Feb 2017 11:34:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: piotrz@apache.org To: commits@flex.apache.org Date: Thu, 09 Feb 2017 11:34:22 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: [flex-asjs] [refs/heads/develop] - - Fix not working numElements - Fix failing internalChildren function when element is undefined archived-at: Thu, 09 Feb 2017 11:34:24 -0000 Repository: flex-asjs Updated Branches: refs/heads/develop d40b9ddff -> 9855fa49d - Fix not working numElements - Fix failing internalChildren function when element is undefined Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5ea3f1b3 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5ea3f1b3 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5ea3f1b3 Branch: refs/heads/develop Commit: 5ea3f1b3230ae20fde48202eca23e641dd137861 Parents: d40b9dd Author: piotrz Authored: Thu Feb 9 12:32:45 2017 +0100 Committer: piotrz Committed: Thu Feb 9 12:32:45 2017 +0100 ---------------------------------------------------------------------- .../HTML/src/main/flex/org/apache/flex/core/ContainerBase.as | 2 +- .../projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ea3f1b3/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as index 047b635..e150ac1 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/ContainerBase.as @@ -231,7 +231,7 @@ package org.apache.flex.core */ public function $numElements():int { - return super.numElements(); + return super.numElements; } /** http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5ea3f1b3/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as index b075e72..d9804b2 100644 --- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as +++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/core/UIBase.as @@ -799,6 +799,8 @@ package org.apache.flex.core COMPILE::JS public function internalChildren():Array { + if (!element) return []; + return element.childNodes as Array; }