Fix error when closing window caused by expand/collapse code
This commit is contained in:
parent
719ec8c694
commit
1f7f8bb7e1
|
@ -46,8 +46,9 @@ Zotero.CollectionTreeView = function()
|
||||||
*/
|
*/
|
||||||
Zotero.CollectionTreeView.prototype.setTree = function(treebox)
|
Zotero.CollectionTreeView.prototype.setTree = function(treebox)
|
||||||
{
|
{
|
||||||
if(this._treebox)
|
if (this._treebox || !treebox) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
this._treebox = treebox;
|
this._treebox = treebox;
|
||||||
|
|
||||||
// Add a keypress listener for expand/collapse
|
// Add a keypress listener for expand/collapse
|
||||||
|
|
Loading…
Reference in New Issue
Block a user