don't try to rebuild the list view if the tree object doesn't yet have a view property

This commit is contained in:
Myk Melez 2008-09-01 18:58:44 -07:00
Родитель 3031f11b2c
Коммит 52d6ca21d7
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -202,7 +202,11 @@ this._log.info("get rowCount: " + this._collection.messages.length);
// itself, then rebuild the view in a timeout to give the collection time
// to do so.
this._collection.invalidate();
this._rebuildView();
// Don't rebuild the view if the list view hasn't been made visible yet
// (in which case the tree won't yet have a view property).
if (this._tree.view)
this._rebuildView();
},
onFilter: function() {