Re: [w3c/webcomponents] connectedCallback timing when the document parser creates custom elements (#551)

> I don't think @WebReflection's second example would help anything or guarantee children are present, right?

I think I forgot to delay the `init` invocation so that it should be `requestAnimationFrame(this.init.bind(this))` in the constructor.

Although it's easy to solve on library side, I don't think we need an extra method for that.

If knowing about children is mandatory for the component, a `MutationObserver` added in the `connectedCallback` should be enough, right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/551#issuecomment-242639842

Received on Friday, 26 August 2016 06:19:57 UTC