Even if the Application instance isn’t an IPopUpHost the method will just return null, so the effect is the same as just doing (appInstance as IPopUpHost). I suspect the method is being misused rather than there being a problem with the method.
From: Alex Harui<mailto:aha...@adobe.com.INVALID> Sent: Tuesday, July 18, 2017 8:33 AM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] findPopupHost issue FWIW, it may not be safe to assume that Application will always be an IPopUpHost, hence the utility function. Thanks, -Alex On 7/17/17, 9:59 PM, "piotrz" <piotrzarzyck...@gmail.com> wrote: >Hi Yishay, > >That's a good point - Application is itself an IPopupHost. I've asked him >what is the use case for his host popup search. > >Thanks, >Piotr > > > >----- >Apache Flex PMC >piotrzarzyck...@gmail.com >-- >View this message in context: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle >x-development.2333347.n4.nabble.com%2FFlexJS-findPopupHost-issue-tp63362p6 >3366.html&data=02%7C01%7C%7Cbfd19d2deba646c64df208d4cd9c9798%7Cfa7b1b5a7b3 >4438794aed2c178decee1%7C0%7C0%7C636359519816386890&sdata=CyeQuoJ0gVVl2UHUB >W%2B6hbyDNw%2FOSFuswfzeLTqUf3c%3D&reserved=0 >Sent from the Apache Flex Development mailing list archive at Nabble.com.