- From: Alice <notifications@github.com>
- Date: Mon, 06 Aug 2018 16:09:05 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 6 August 2018 23:09:27 UTC
One benefit of the `createdCallback` (presumably?) option is that, if we do combine all possible settings into something like `ElementConfiguration`, the API gives you an opportunity to learn by exploration of that object. With `new MyThing(element)`, authors would have to learn about each `MyThing` separately (although obviously good docs can help with this). Also, if new `MyThing`s keep being added, custom elements which were written before they existed run the risk of having `MyThing`s being defined by the page instead. This may not be a concern, but it seems awkward to me. -- 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-410880866
Received on Monday, 6 August 2018 23:09:27 UTC