Re: [w3c/webcomponents] How can a custom element detect when it is transcluded into a shadow tree (slotchange)? (#504)

@trusktr the `connectedCallback()` will be fired when the element is attached as light DOM. It shouldn't matter where it's slotted for your use case, just that it's been attached to a `<motor-node>`. In this case you can just check `child.parentNode instanceof MotorNode`.

---
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/504#issuecomment-229221586

Received on Wednesday, 29 June 2016 00:14:13 UTC