- From: Justin Fagnani <notifications@github.com>
- Date: Tue, 21 Feb 2017 22:46:28 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 22 February 2017 06:47:03 UTC
@treshugart I don't think decorators are the right solution for platform mixins because they are applied to the wrong thing - the concrete subclass of HTMLElement that the developer is writing. Class mixins do the right thing, because they apply to the prototype chain above the target class. Methods can be override, super calls, etc: ```javascript class MyGlobalLikeThing = WindowOrWorkerGlobalScope(Object) { fetch(input, init) { // do something return super.fetch(input, init); } } ``` -- 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/509#issuecomment-281584350
Received on Wednesday, 22 February 2017 06:47:03 UTC