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

Fix DijitRegistry issues #146

Merged
1 commit merged into from
May 4, 2012
Merged

Fix DijitRegistry issues #146

1 commit merged into from
May 4, 2012

Conversation

justindoherty
Copy link
Contributor

After using the DijitRegistry extension I noticed that it was not actually removing the widget from the registry. Also I was getting "Tried to register widget with id==..." errors if I loaded the same page twice and this was due to ContentPanes checking for and calling destroyRecursive on its child widgets. Destroy never actually was called.

Use widget id as argument for registry.remove as it takes an id and not a widget instance.
Add destroyRecursive method because containers check for and call destroyRecursive in their destroyDecendants cleanup.

…ot a widget instance.

Add destroyRecursive method becuase containers check for and call destroyRecursive in their destroyDecendants cleanup.
@ghost ghost merged commit 68695b3 into dojo:master May 4, 2012
@kfranqueiro
Copy link
Member

Good catch; thanks for pointing this out!

This pull request was closed.
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