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: #13 performance degradation #15

Closed
wants to merge 1 commit into from
Closed

Conversation

au-re
Copy link

@au-re au-re commented Dec 22, 2017

Removing the dom node does not remove the JS objects associated to it causing a memory leak (see eugene lazutkin comment https://stackoverflow.com/questions/683366/remove-all-the-children-dom-elements-in-div).

Using this.canvas.remove() instead of this.wrapper.removeChild(this.wrapper.childNodes[0]); seems to fix this.

julienkosinski added a commit to julienkosinski/matrix-rain that referenced this pull request Jun 12, 2018
See the original Pull Request:
P5-wrapper/react#15
@and-who
Copy link
Contributor

and-who commented May 28, 2019

Sry, that this took Ages! 😅
I just released a new Version, so this should be fixed.

@and-who and-who closed this May 28, 2019
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