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

destroy() does not propagate through children #57

Closed
tristanls opened this issue Nov 17, 2011 · 0 comments
Closed

destroy() does not propagate through children #57

tristanls opened this issue Nov 17, 2011 · 0 comments
Assignees

Comments

@tristanls
Copy link
Collaborator

Hey @arturadib, I noticed that the destroy event isn't propagated to the children, so if I have a hierarchy like so

var child = $$( );
var parent = $$( );
var grandparent = $$( );

grandparent.append( parent );

parent.append( child );

then when I call grandparent.destroy(), the destroy event is never triggered for the child. Is there a specific design reason for this? I'm running into children not removing themselves as listeners, even though I thought they were being destroyed.

To clarify further, I have bound a pre:destroy event inside child to make sure it cleans up after itself in the application. But since destroy isn't getting called, the cleanup doesn't happen.

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

No branches or pull requests

1 participant