Skip to content

fix bug: removeListener sometimes not working#138

Open
novenn wants to merge 1 commit into
wnr:masterfrom
novenn:master
Open

fix bug: removeListener sometimes not working#138
novenn wants to merge 1 commit into
wnr:masterfrom
novenn:master

Conversation

@novenn
Copy link
Copy Markdown

@novenn novenn commented May 24, 2024

removeListener not working in some scenior:

If the element or its parent has already been removed and appended to the DOM again
then Object.onload is been called again, and onElementDetectable will be called again

in some scenarios: users want to removeListener before element been removed
but when the element been appended to the DOM again, if onElementDetectable is called
then addListener function will be called again

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.

1 participant