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

Ensure prior render is cleared when calling this.render. #155

Merged
merged 2 commits into from
May 25, 2016

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 25, 2016

Previously, calling this.render twice within the same test (without calling this.clearRender() in between) would cause any components created in the first render to never be destroyed (and therefore they cannot cleanup any listeners they created).

This change essentially ensures that we call clearRender before each this.render invocation so that if a component had been previously instantiated it is cleared and reset.

Fixes #111.

Previously, calling `this.render` twice within the same test (without
calling `this.clearRender()` in between) would cause any components
created in the first render to never be destroyed (and therefore they
cannot cleanup any listeners they created).

This change essentially ensures that we call `clearRender` before each
`this.render` invocation so that if a component had been previously
instantiated it is cleared and reset.
@rwjblue
Copy link
Member Author

rwjblue commented May 25, 2016

Failure is due to issues on canary. I created emberjs/ember.js#13557 to track that upstream

@rwjblue rwjblue merged commit 9dbb975 into emberjs:master May 25, 2016
@rwjblue rwjblue deleted the clear-render-before-render branch May 25, 2016 22:37
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