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

Implemented 'destroy()' propagating to all appended agility objects #58

Merged
merged 2 commits into from
Nov 19, 2011
Merged

Implemented 'destroy()' propagating to all appended agility objects #58

merged 2 commits into from
Nov 19, 2011

Conversation

tristanls
Copy link
Collaborator

Addresses #57

@@ -660,6 +660,11 @@

// Triggered upon removing self
_destroy: function(event){
// destroy all the children prior to destroying self
this._container.each(function(){
Copy link
Owner

Choose a reason for hiding this comment

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

Would this._container.empty() do the trick too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes sir! My tests pass.

@arturadib
Copy link
Owner

I think this makes sense. We might be able to simplify it as suggested above. Either way it's a +1 for me, feel free to merge!

tristanls added a commit that referenced this pull request Nov 19, 2011
Implemented 'destroy()' propagating to all appended agility objects
@tristanls tristanls merged commit 9c41df1 into arturadib:master Nov 19, 2011
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.

2 participants