- From: Joseph Orbegoso Pea <notifications@github.com>
- Date: Sun, 27 Nov 2016 20:37:13 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 28 November 2016 04:37:48 UTC
@hayatoito Not with closed trees.
In a tree of node trees where all the trees are mode open, it is possible to implement `slot.distributedNodes()` like so:
- Let `slot` be the context object.
- If (slot.assignedSlot)
- return []
- else
- return slot.assignedNodes({flatten:true})
Basically, if the slot is assigned, then obviously nodes aren't finally distributed there. Only a final distribution point returns anything.
This doesn't work with closed trees obviously; that's where I'm currently having trouble figuring out the least hacky way to accomplish this.
An official method for this would be nice because we wouldn't need to make a hack when dealing with the closed trees.
--
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/611#issuecomment-263181983
Received on Monday, 28 November 2016 04:37:48 UTC