- From: Joe Pea <notifications@github.com>
- Date: Mon, 08 Apr 2019 22:41:17 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 9 April 2019 05:41:39 UTC
> instead of being stuck with single inheritance model it'd be so fun creating components and apps. The above custom-attributes and element-behaviors are sorts of "mixin"-like ideas, whereby we can mix and match multiple functionalities into one element. @WebReflection By the way, you can have multiple inheritance with class-factory mixins. Check out my [`Mixin`](https://github.com/trusktr/lowclass/blob/master/src/Mixin.js) tool. Here's the [tests](https://github.com/trusktr/lowclass/blob/master/src/Mixin.js), and here's [an example](https://github.com/trusktr/infamous/blob/master/src/core/Sizeable.js#L17-L24) where my `Sizeable` class extends from both `Observable` and `TreeNode` classes. -- 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-481109851
Received on Tuesday, 9 April 2019 05:41:39 UTC