- From: Ryosuke Niwa <notifications@github.com>
- Date: Fri, 01 May 2015 14:43:07 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/47/r29535958@github.com>
> @@ -210,6 +210,18 @@ Introduce a variant of mutation observers where the callback is invoked after ea > - It could be as messy as old mutation events > - Might be still too expensive to use with the second approach which requires collecting every distribution candidate. > > -## 4. Not a problem for v1 > +## 5. Run Distribution Callback in a Separate Scripting Context or as Pure Function > + > +Yet another approach is to decouple the timing from the observability by making callback execution not be observable. This can be accomplished by either creating a separate scripting context just for running distribution callbacks (similar to Houdini [ideas](https://wiki.css-houdini.org/explaining-css-layout#layout)), or some sort of not-yet-invented [pure function](http://en.wikipedia.org/wiki/Pure_function) ECMAScript primitive. > + > +### Pros > +- Provides consisten distribution state to user code > +- Interoperable > + > +### Cons > +- Both separate scripting context and pure function ideas need much more thorough examination and may take years to get right > + > + > +## 4. Not a Problem for v1 and this be 5? --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/47/files#r29535958
Received on Friday, 1 May 2015 21:43:52 UTC