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

Maintain childViews array. #11211

Closed
wants to merge 2 commits into from
Closed

Maintain childViews array. #11211

wants to merge 2 commits into from

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 18, 2015

The node-managers ensure that willDestroyElement (and other hooks) are called properly (by walking the much more precise view._renderNode tree), having the renderer's willDestroyElement also traverse childViews leads to willDestroyElement getting called twice in cases other than those for ContainerView.

Fixes #11077.

@rwjblue rwjblue force-pushed the child-views-maintained branch 2 times, most recently from 645d365 to e473804 Compare May 19, 2015 14:53
@jmurphyau
Copy link
Contributor

I'm having this particular problem..

It's causing the plugin ember-tether yapplabs/ember-tether to throw errors.

@rwjblue rwjblue force-pushed the child-views-maintained branch from e473804 to 1c68c6b Compare June 3, 2015 11:10
@rwjblue
Copy link
Member Author

rwjblue commented Jun 3, 2015

@krisselden - I updated this PR to make childViews a CP that is built dynamically based on the renderNode contents. There are still a few failures that I need to reason through (could use help on those), but I'd like your thoughts on the general idea...

@rwjblue rwjblue added this to the 1.13.0 milestone Jun 3, 2015
@krisselden krisselden force-pushed the child-views-maintained branch 3 times, most recently from 1571eff to da6c31b Compare June 12, 2015 09:00
@rwjblue rwjblue force-pushed the child-views-maintained branch from da6c31b to a96d337 Compare June 12, 2015 20:50
rwjblue and others added 2 commits June 12, 2015 17:37
* Do not return an `Ember.A`
* Reimplement `childViews` for `ContainerView`
@rwjblue rwjblue force-pushed the child-views-maintained branch from a96d337 to 785f9c5 Compare June 12, 2015 22:43
@rwjblue
Copy link
Member Author

rwjblue commented Jun 13, 2015

This is no longer needed to prevent the double destruction. I'll update the title/description to explain the intent now.


This PR adds childViews as a CP that is maintained upon render. I'm also going to remove from the 1.13 milestone

@rwjblue rwjblue removed this from the 1.13.0 milestone Jun 13, 2015
@rwjblue rwjblue changed the title [BUGFIX beta] Prevent willDestroyElement from being called twice. Maintain childViews array. Jun 13, 2015
@stefanpenner
Copy link
Member

might be related #9733?

@stefanpenner
Copy link
Member

this seems to have gone stale, is this something we still want to land?

@rwjblue rwjblue closed this Aug 2, 2015
@rwjblue rwjblue deleted the child-views-maintained branch July 22, 2016 19:57
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.

[Glimmer] willDestroyElement is sometimes called again when the outlet view destroys the toplevel view
4 participants