Re: Adopting a Custom Element into Another Document

On Tue, Jan 13, 2015 at 8:36 PM, Ryosuke Niwa <rniwa@apple.com> wrote:
> I'm not sure I understand what you mean by that.  The name of the new class MyElementB isn't important.
>
> Do you agree that the author has to create a new class in B if there is no definition of MyElement there?

Yes.


> But how do we even determine whether MyElement's defined in B?

Who is we?


> And if did, how do we get the class's prototype?

In the proposed setup the developer just gets an adopted callback and
can then do whatever they want. Either cleaning up the giant memory
leak or leaving it in.


-- 
https://annevankesteren.nl/

Received on Wednesday, 14 January 2015 08:42:58 UTC