On 2/23/17, 12:12 AM, "Harbs" <harbs.li...@gmail.com> wrote:

>It could return the body, but the body is not an IPopUpHost and it does
>not have addElement().
>
>The element of an embedded app will not be the body, so addElement() to
>that will blow up if it needs to be added to the body.

This is JavaScript right?  We can do just about anything we want.  I would
think you can have IPopUpHost return an object that has addElement that
proxies the calls to body just like any of our other wrapped HTMLElements.

The advantage of having an abstraction like IPopUpHost is that different
configurations have a better chance of having dialog work properly by
offering their own custom place to hang dialogs.

Of course, I could be wrong...
-Alex

Reply via email to