Date: 2009-07-29 12:45:46 -0700 (Wed, 29 Jul 2009)
http://bugs.adobe.com/jira/browse/SDK-20758 - DropdownEvent.CLOSE event is not always dispatched when the dropdown is removed (destroyed before closed)
ComboBox was not dispatching a CLOSE event when the dropdown was closed due to a programmatic change while it was open. For example, if the dataProvider or a style was changed while the dropdown was open, we want to immediately close the dropdown.
I modified destroyDropdown to always end the tween if one is currently playing and then close the dropdown with no animation. I added a new parameter to displayDropdown to open/close the dropdown without any animation. Where we were calling destroyDropdown(), I removed the setting of _showingDropdown because that variable is managed in displayDropdown.
Thanks to Brian Curtis for filing the bug and for the original patch submission.
QE notes: Add tests for these use cases
Doc notes: None
Tests run: ComboBox
Is noteworthy for integration: No