diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 3cef7b3a4a..6b884b1397 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1184,12 +1184,7 @@ var ZoteroPane = new function() // Clear quick search and tag selector when switching views document.getElementById('zotero-tb-search').value = ""; - - // XBL functions might not yet be available - var tagSelector = document.getElementById('zotero-tag-selector'); - if (tagSelector.deselectAll) { - tagSelector.deselectAll(); - } + ZoteroPane.tagSelector.clearTagSelection(); // Not necessary with seltype="cell", which calls nsITreeView::isSelectable() /*if (collectionTreeRow.isSeparator()) {