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

Implement correctly ordered destruction hooks. #14227

Merged
merged 2 commits into from
Sep 7, 2016
Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Sep 7, 2016

Robert Jackson added 2 commits September 7, 2016 10:03
These additional assertions/tests were added in 2.8 beta channel against
HTMLBars rendering engine. This ports them forward to master/canary.
@rwjblue rwjblue force-pushed the lifecycle-hook-teardown branch from d6eb671 to 3dcde0f Compare September 7, 2016 16:12
@rwjblue
Copy link
Member Author

rwjblue commented Sep 7, 2016

Discussed with @krisselden and while there is still work to be done in Glimmer to remove the need to override some of these things this is still a step forward and we can iterate on it...

@rwjblue rwjblue merged commit 945d81a into master Sep 7, 2016
@rwjblue rwjblue deleted the lifecycle-hook-teardown branch September 7, 2016 20:21
@@ -69,6 +69,9 @@ export default class Environment extends GlimmerEnvironment {
super(...arguments);
this.owner = owner;

// can be removed once https://github.com/tildeio/glimmer/pull/305 lands
this.destroyedComponents = undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought you indented to just use this.destructors since you merged that PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah we haven't merged yet. ignore me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'd rather have a small kludge here in Ember for beta.1 and fix upstream in that other PR for beta.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants