-
Notifications
You must be signed in to change notification settings - Fork 295
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
dgrid in dijit/layout/stackcontainer not being properly destroyed - possible memoryleak #1318
Comments
I replaced the
in
with following code
to make destroy work again. |
Interesting. Example repro from test page:
OTOH, if you were to call |
that's the problematic code... dijit/layout/StackContainer
it removes the children before destroying them |
if the StackContainer is being destroyed, it tries to destroy it's children too - unfortunately it calls 'removeChild(child)' before destroying it - the dgrid cleanup mechanism doesn't work any more, because
document.getElementById(id)
doesn't find the row, because it's not part of the DOM anymore.
therefore removeRow() is not called and if you use widgets in your rows, those widgets may not be destroyed.
any ideas how to solve this?
The text was updated successfully, but these errors were encountered: