Community
Participate
Working Groups
Build Identifier: Noticed whilst browsing the code that some Dojo Widgets are not cleaning up their dojo.connections with dojo.disconnect in a destroy method. This can contribute to memory leaks, which could mount up, depending on the page behavior. If widgets are programmed to use this.connect ( some are ) instead, of dojo.connect, then the connections are automatically cleaned up by the default widget behaviour. Reproducible: Always Steps to Reproduce: Search for dojo.connect in 1. ExplorerTree 2. ImportDialog 3. LoginDialog 4. NewItemDialog 5. NewSiteDialog 6. OpenResourceDialog 7. SFTPConnectionDialog 8. SiteEditor
we'll stop using connect/disconnect but we need to ensure that the dijit-less versions of our dialogs are still cleaning up (addEventListener/removeEventListener)
I think the main place to examine for cleanup is commands, since the command buttons (and tooltips) often get replaced in the same page. (For example if the editor hash or navigator hash changes). We already call "commandService.destroy" in these cases, so we would probably want to do all our disconnects from buttons/links and also tooltip node removal at this time.
changing dependencies. This doesn't block "library independence" but needs to get done in 2.0
(In reply to Anton McConville from comment #0) > Noticed whilst browsing the code that some Dojo Widgets are not [snip] The Orion client no longer uses Dojo so this defect is not applicable.