Mercurial > snowl
changeset 220:412c3ccf2e24
a better way to clear the selection
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Wed, 30 Jul 2008 00:08:27 -0700 |
parents | a1820ad3ceab |
children | 195a5e4f8c9a |
files | extension/content/snowl.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extension/content/snowl.js Tue Jul 29 23:26:21 2008 -0700 +++ b/extension/content/snowl.js Wed Jul 30 00:08:27 2008 -0700 @@ -253,7 +253,7 @@ // Since the number of rows might have changed, we rebuild the view // by reinitializing it instead of merely invalidating the box object // (which wouldn't accommodate changes to the number of rows). - this._tree.view.selection = null; + this._tree.view.selection.clearSelection(); this._tree.view = this; },