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

Anther side effect of the new callback: the possibility to bypass internals defined during the inheritance. This might work fine for other callbacks, but for the definition of the internals, guaranteeing that the super class is defining the right internals seems to be very important, and the subclass should not have too much control other than overriding internals after the fact.

On the other hand, `Something` constructor is guaranteed to be untouchable by the subclass, while `this.something()` provides a little bit more flexibility, in case the subclass want to redefine that particular method for more control. It seems the best of both worlds.

-- 
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-428796247

Received on Thursday, 11 October 2018 02:24:18 UTC