mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Followup to bug 580937 to implement TabItem.close with xul:tabs instead of BrowserTab.
This commit is contained in:
parent
3d2303aca5
commit
b44c181562
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user