Fix error when closing window caused by expand/collapse code

This commit is contained in:
Dan Stillman 2007-03-08 20:56:45 +00:00
parent 719ec8c694
commit 1f7f8bb7e1

View File

@ -46,8 +46,9 @@ Zotero.CollectionTreeView = function()
*/
Zotero.CollectionTreeView.prototype.setTree = function(treebox)
{
if(this._treebox)
if (this._treebox || !treebox) {
return;
}
this._treebox = treebox;
// Add a keypress listener for expand/collapse