Fix for error when rapidly showing-hiding-showing the items list

This commit is contained in:
Dan Stillman 2007-04-02 13:57:56 +00:00
parent 4b83db32aa
commit eef19de220

View File

@ -144,7 +144,13 @@ Zotero.ItemTreeView.prototype.refresh = function()
var cacheFields = ['title', 'date'];
// Cache the visible fields so they don't load individually
var visibleFields = this.getVisibleFields();
try {
var visibleFields = this.getVisibleFields();
}
// If treebox isn't ready, skip refresh
catch (e) {
return;
}
for each(var field in visibleFields) {
if (field == 'year') {
field = 'date';