Mercurial > snowl
changeset 279:910120e0ac63
don't try to rebuild the list view if the tree object doesn't yet have a view property
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Mon, 01 Sep 2008 18:58:44 -0700 |
parents | eb0a143a3080 |
children | 7c353a230c70 |
files | content/list.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/content/list.js Mon Sep 01 18:58:02 2008 -0700 +++ b/content/list.js Mon Sep 01 18:58:44 2008 -0700 @@ -202,7 +202,11 @@ // 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() {