Re: [webcomponents] [Custom]: inflexible extends as fixed element type (bugzilla: 28158) (#143)

I think this is solved by using a factory that returns custom element classes/registering them. You could easily write the function

```js
function makeSuperElement(BaseClass, baseTagName) {
  class SuperElement extends BaseClass { ... };
  document.registerElement(SuperElement, { extends: baseTagName });
  return SuperElement;
});
```

and then call it many times.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/143#issuecomment-195392198

Received on Friday, 11 March 2016 14:36:51 UTC