When removing all items from the display, ensure selection state is reset too

This avoids a problem where after a state change, we'd still think
something was selected.
This commit is contained in:
Colin Walters 2009-04-20 15:58:31 -04:00
parent 3aeadee946
commit 61b6fd2f9c

View File

@ -710,6 +710,7 @@ GenericDisplay.prototype = {
// Removes all displayed items.
_removeAllDisplayItems: function() {
this.unsetSelected();
for (itemId in this._displayedItems)
this._removeDisplayItem(itemId);
},