lit / lit.dev

The Lit website
https://lit.dev
BSD 3-Clause "New" or "Revised" License
119 stars 186 forks source link

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

Closed odanado closed 5 months ago

odanado commented 6 months ago

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.