From f407d19c0a10a467410b5edebf34b6aa5ff1e0ba Mon Sep 17 00:00:00 2001 From: aceman Date: Sun, 27 Nov 2016 23:52:18 +0100 Subject: [PATCH] Bug 1320568 - Properly clear searchTerms in suite/mailnews/searchBar.js. r=Ratty, a=Ratty DONTBUILD --- suite/mailnews/searchBar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suite/mailnews/searchBar.js b/suite/mailnews/searchBar.js index d17288c64e..bcfabdafe0 100644 --- a/suite/mailnews/searchBar.js +++ b/suite/mailnews/searchBar.js @@ -292,7 +292,7 @@ function createSearchTermsWithList(aTermsArray) var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib; var nsMsgSearchOp = Components.interfaces.nsMsgSearchOp; - gSearchSession.clear(); + gSearchSession.searchTerms.clear(); gSearchSession.clearScopes(); var i; @@ -385,7 +385,7 @@ function createSearchTerms() createSearchTermsWithList(searchTermsArray); // now that we've added the terms, clear out our input array - searchTermsArray.Clear(); + searchTermsArray.clear(); } function onSearchStop()