Followup to bug 580937 to implement TabItem.close with xul:tabs instead of BrowserTab.

This commit is contained in:
Edward Lee 2010-07-23 14:26:17 -07:00
parent 3d2303aca5
commit b44c181562

View File

@ -393,7 +393,7 @@ window.TabItem.prototype = iQ.extend(new Item(), {
// Closes this item (actually closes the tab associated with it, which automatically
// closes the item.
close: function() {
this.tab.close();
gBrowser.removeTab(this.tab);
// No need to explicitly delete the tab data, becasue sessionstore data
// associated with the tab will automatically go away