- From: Andres Rios <notifications@github.com>
- Date: Thu, 24 Mar 2016 13:37:37 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 24 March 2016 20:38:08 UTC
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