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

[docs] make code samples in component lifecycle consistent #1338

Merged
merged 1 commit into from
May 30, 2024

Conversation

odanado
Copy link
Contributor

@odanado odanado commented May 23, 2024

In the description of disconnectedCallback, window.removeEventListener is used. However, the prefix window. is omitted in the connectedCallback description. To improve consistency between the two sample codes, window. has been added to the connectedCallback description.

Copy link
Member

@augustjk augustjk left a comment

Choose a reason for hiding this comment

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

Thanks! I love me some consistency.

@augustjk augustjk changed the title add window for consistency [docs] make code samples in component lifecycle consistent May 30, 2024
@augustjk augustjk merged commit 18419ed into lit:main May 30, 2024
6 of 8 checks passed
@odanado odanado deleted the add-window branch June 6, 2024 03:59
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.

2 participants