Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 382126

Summary: change all dojo.empty(toolbar) to commandService.destroy(toolbar)
Product: [ECD] Orion Reporter: Susan McCourt <susan>
Component: ClientAssignee: Susan McCourt <susan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.5   
Target Milestone: 1.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Susan McCourt CLA 2012-06-08 12:19:46 EDT
In bug 380823 we fixed a menu leak in the navigator.
Long term we need to change all code that uses dojo.empty to clean up a toolbar to use commandService.destroy instead.  This gives the command framework a chance to clean up anything besides dom nodes (such as dijits, etc. etc.)

I didn't want to make the global change in bug 380823 since it doesn't provide immediate value.  But it's the right long term change.