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.
In the description of
disconnectedCallback
,window.removeEventListener
is used. However, the prefixwindow.
is omitted in theconnectedCallback
description. To improve consistency between the two sample codes,window.
has been added to theconnectedCallback
description.