Skip to content
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

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Implementation of customElements.getName() #254

merged 3 commits into from
Dec 14, 2023

Conversation

mash-graz
Copy link
Contributor

Fixes: #253

@mash-graz mash-graz changed the title Implementation for customElements.getName() Implementation of customElements.getName() Dec 11, 2023
* @param {Function} Class **Class** of custom element
* @returns {string?} found tag name or null
*/
getName(Class){
Copy link
Owner

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.

Copy link
Contributor Author

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) {
Copy link
Owner

@WebReflection WebReflection Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also good but I wasn't clear ... see indentation compared to get(...)

Screenshot from 2023-12-12 13-33-21

Copy link
Contributor Author

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) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also good but I wasn't clear ... see indentation compared to get(...)

Screenshot from 2023-12-12 13-33-21

@WebReflection WebReflection merged commit 838f941 into WebReflection:main Dec 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing customElements.getName()
2 participants