ftlabs/fruitmachine

The `parent` attribute is not being cleared when a view is `.remove()`ed

Closed this issue · 4 comments

The `parent` attribute is not being cleared when a view is `.remove()`ed

Oh really? That's interesting. Was it not my hare logic then after all?

You should have always been calling .destroy() not .remove(). This was just
a small observation I made :). remove() simply removes a view from it's
current nested context. It's suitable for views that haven't been rendered
yet, or views that you wish to move to a new location.

On Fri, May 3, 2013 at 11:41 AM, Matt Andrews notifications@github.comwrote:

Oh really? That's interesting. Was it not my hare logic then after all?


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-17388245
.

Ah ok. Understood.

Fixed at ba9662a