Bug 1320568 - Properly clear searchTerms in suite/mailnews/searchBar.js. r=Ratty, a=Ratty DONTBUILD

This commit is contained in:
aceman 2016-11-27 23:52:18 +01:00
Родитель db9e870324
Коммит f407d19c0a
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -292,7 +292,7 @@ function createSearchTermsWithList(aTermsArray)
var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib; var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;
var nsMsgSearchOp = Components.interfaces.nsMsgSearchOp; var nsMsgSearchOp = Components.interfaces.nsMsgSearchOp;
gSearchSession.clear(); gSearchSession.searchTerms.clear();
gSearchSession.clearScopes(); gSearchSession.clearScopes();
var i; var i;
@ -385,7 +385,7 @@ function createSearchTerms()
createSearchTermsWithList(searchTermsArray); createSearchTermsWithList(searchTermsArray);
// now that we've added the terms, clear out our input array // now that we've added the terms, clear out our input array
searchTermsArray.Clear(); searchTermsArray.clear();
} }
function onSearchStop() function onSearchStop()