Re: [webcomponents] Permit retrieval of registered classes from window.customElements (#445)

I think that @domenic desires to see __a very short way__ to check if a custom element was defined or not. What about if
```javascript
var check = document.querySelector('my-custom-element');
if (check) {
  console.log('my-custom-element already defined');
}
```
So, if defined _check_ won't be null.
In that way we don't need to add a new concept like a list or registry of defined custom elements.


---
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/445#issuecomment-201007961

Received on Thursday, 24 March 2016 20:38:08 UTC