flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: [FlexJS] Accesing parent
Date Tue, 29 Nov 2016 21:02:50 GMT
In UIHTMLElementWrapper:

public function get parent():IParent
        {
            COMPILE::JS
            {
            var p:WrappedHTMLElement = this.positioner.parentNode as
WrappedHTMLElement;
            }


this.positioner is undefined, so I think that's a bug right?


2016-11-29 20:37 GMT+01:00 Carlos Rovira <carlosrovira@apache.org>:

> Hi,
>
> I'm trying to see what component is the parent of the current component in
> createElement mehtod of a ContainerBase
>
> What's the wat to check this?
>
> I'm trying something like
>
> if (parent is SomeComponent) {
>   ....
> }
>
> but I'm getting browser error. Can't find examples in source code or in
> examples
>
>
> Thanks
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message