Re: [w3c/webcomponents] How to define APIs only for custom element authors (#758)

I don't quite understand why delivering `Something` via a callback is more expensive than `new Something()`. (A way to avoid the "cons" of `new Something()` is perhaps to allow declaration ahead of time that the custom element won't use it, or indeed, require explicit opt-in that it's going to be used.)

(Another "cons" of `ShadowRoot` is that it's not limited to custom elements.)

-- 
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/758#issuecomment-409176847

Received on Tuesday, 31 July 2018 10:42:40 UTC