Bug 507421 - Port |Bug 418490 - Implement iterator-helper module for dealing with xpcom arrays in javascript| to SM; (Av1) commandglue.js (only); r=iann_bugzilla

This commit is contained in:
Serge Gautherie 2009-08-07 19:26:23 +02:00
Родитель d1971abc9f
Коммит fb2c6c0eb8
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -44,6 +44,8 @@
* Command-specific code. This stuff should be called by the widgets
*/
Components.utils.import("resource://gre/modules/iteratorUtils.jsm");
//NOTE: gMessengerBundle and gBrandBundle must be defined and set
// for this Overlay to work properly
@ -1075,8 +1077,10 @@ function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms, searchOnlin
}
var termsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray);
for (i = 0; i < termsArray.Count(); ++i)
gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm));
const nsIMsgSearchTerm = Components.interfaces.nsIMsgSearchTerm;
for each (let term in fixIterator(termsArray, nsIMsgSearchTerm)) {
gSearchSession.appendTerm(term);
}
}
function CreateGroupedSearchTerms(searchTermsArray)