Guys, If anyone is seeing some problems with this let me know. When I started to use numElements without those fix it didn't work.
Piotr 2017-02-09 12:34 GMT+01:00 <pio...@apache.org>: > 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 <pio...@apache.org> > Authored: Thu Feb 9 12:32:45 2017 +0100 > Committer: piotrz <pio...@apache.org> > 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; > } > > > -- Greetings Piotr Zarzycki Flex/AIR/.NET Developer mobile: +48 880 859 557 e-mail: piotrzarzyck...@gmail.com skype: zarzycki10 LinkedIn: http://www.linkedin.com/piotrzarzycki <https://pl.linkedin.com/in/piotr-zarzycki-92a53552>