don't just delete itemsTree, because it doesn't get reregistered

This commit is contained in:
Simon Kornblith 2011-03-08 23:37:31 +00:00
parent e312fc0bb6
commit d4a779dd53

View File

@ -38,11 +38,6 @@ var ZoteroTab = new function()
.chromeEventHandler.ownerDocument.defaultView;
if(!this.containerWindow) return;
if(this.containerWindow.ZoteroPane && this.containerWindow.ZoteroPane.itemsView) {
this.containerWindow.ZoteroPane.itemsView.unregister();
delete this.containerWindow.ZoteroPane.itemsView;
}
var tabs = (this.containerWindow.gBrowser.tabs
? this.containerWindow.gBrowser.tabs : this.containerWindow.gBrowser.mTabs);