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

fix: unsubscribe everything event & nullify DOM elements avoid detach elements #551

Merged
merged 8 commits into from Nov 14, 2020

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Nov 8, 2020

  • see this Stack Overflow question for reference
  • ref Angular-Slickgrid issue

Got a bunch of detached DOM elements when used in SPA (Single Page App) like in Angular-Slickgrid, going in and out on about 20 pages, I get about a thousand detached div/span elements and this PR helps a lot in fixing that issue.

@ghiscoding ghiscoding changed the title fix: nullify every DOM elements to avoid detach elements fix: unsubscribe everything event & nullify DOM elements avoid detach elements Nov 12, 2020
@ghiscoding
Copy link
Collaborator Author

ghiscoding commented Nov 13, 2020

Howdy Ben? Hope you're doing good down there.

If you have a chance to review this PR, I'm done with it, it's fixing a few unsubscribe events and possible detached DOM elements. If you could do another release after merging the PR, that would be great too.

Thanks again mate 🍺

@6pac 6pac merged commit e3f4961 into master Nov 14, 2020
@ghiscoding ghiscoding deleted the bugfix/detach-dom-leaks branch November 28, 2020 05:23
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.

None yet

2 participants