rem: for (var i = 0; i < termsArray.Count(); i++) 
add: for (i = 0; i < termsArray.Count(); ++i) 
context: function createSearchTermsWithList(aTermsArray){  var nsMsgSearchScope = Components.interfaces.nsMsgSearchScope;  var nsMsgSearchAttrib = Components.interfaces.nsMsgSearchAttrib;  var nsMsgSearchOp = Components.interfaces.nsMsgSearchOp;  gSearchSession.clearScopes();  var searchTerms = gSearchSession.searchTerms;  var searchTermsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray);  searchTermsArray.Clear();  var selectedFolder = GetThreadPaneFolder();  var ioService = Components.classes["@mozilla.org/network/io-service;1"]                  .getService(Components.interfaces.nsIIOService);    var termsArray = aTermsArray.QueryInterface(Components.interfaces.nsISupportsArray);  if (gXFVirtualFolderTerms)  {    var msgDatabase = selectedFolder.getMsgDatabase(msgWindow);    if (msgDatabase)    {      var dbFolderInfo = msgDatabase.dBFolderInfo;      var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri");      viewDebug("createSearchTermsWithList xf vf scope = " + srchFolderUri + "\n");      var srchFolderUriArray = srchFolderUri.split('|');      for (var i in srchFolderUriArray)       {        var realFolderRes = GetResourceFromUri(srchFolderUriArray[i]);        var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);        if (!realFolder.isServer)          gSearchSession.addScopeTerm(getScopeToUse(termsArray, realFolder, ioService.offline), realFolder);      }    }  }  else  {    viewDebug ("in createSearchTermsWithList, adding scope term for selected folder\n");    gSearchSession.addScopeTerm(getScopeToUse(termsArray, selectedFolder, ioService.offline), selectedFolder);  }  // add each item in termsArray to the search session  for (var i = 0; i < termsArray.Count(); i++)    gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm));}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f9cb0a0f3b15598c8de4abe3c6943c8f0ba1bfe9/searchBar.js/clean/mail/base/content/searchBar.js