-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of customElements.getName()
#254
Conversation
customElements.getName()
* @param {Function} Class **Class** of custom element | ||
* @returns {string?} found tag name or null | ||
*/ | ||
getName(Class){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some indentation issue here ... one less space for getName
and the rest of the code, otherwise this looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now!
Thanks for your fast response.
@@ -195,7 +195,7 @@ export class CustomElementRegistry { | |||
* @param {Function} Class **Class** of custom element | |||
* @returns {string?} found tag name or null | |||
*/ | |||
getName(Class){ | |||
getName(Class) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O.k. -- I finally got it! :)
Indentation should be fixed now.
@@ -195,7 +195,7 @@ export class CustomElementRegistry { | |||
* @param {Function} Class **Class** of custom element | |||
* @returns {string?} found tag name or null | |||
*/ | |||
getName(Class){ | |||
getName(Class) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes: #253