On Mon, Dec 3, 2012 at 6:52 PM, Allen Wirfs-Brock <[email protected]>wrote:
>
> OK, so it sounds like we have a plan. I'll update the spec. to use
> @@create.
>
Thanks for resolving this. Having the class side inheritance for @@create
makes complete sense to me and it solves a lot of issues. It can be used to
explain how subclassing Array and DOM objects work too.
For example:
HTMLButtonElement.@@create = function() {
return document.createElement('button');
};
class MyButton extends HTMLButtonElement {
constructor(text) {
this.textContent = text;
}
}
--
erik
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss