From a459ca4ef98b12b02505b0f47a19e443e5a50a13 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 5 Oct 2004 03:22:01 +0000 Subject: [PATCH] fix js warnings, 262893 patch by gautheri@noos.fr, r/sr=bienvenu --- mailnews/base/resources/content/searchBar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mailnews/base/resources/content/searchBar.js b/mailnews/base/resources/content/searchBar.js index 7132dba3deb..575481b0b21 100644 --- a/mailnews/base/resources/content/searchBar.js +++ b/mailnews/base/resources/content/searchBar.js @@ -361,6 +361,7 @@ function createSearchTermsWithList(aTermsArray) var searchTermsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray); searchTermsArray.Clear(); + var i; var selectedFolder = GetThreadPaneFolder(); if (gXFVirtualFolderTerms) { @@ -371,7 +372,7 @@ function createSearchTermsWithList(aTermsArray) var srchFolderUri = dbFolderInfo.getCharPtrProperty("searchFolderUri"); viewDebug("createSearchTermsWithList xf vf scope = " + srchFolderUri + "\n"); var srchFolderUriArray = srchFolderUri.split('|'); - for (var i in srchFolderUriArray) + for (i in srchFolderUriArray) { var realFolderRes = GetResourceFromUri(srchFolderUriArray[i]); var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder); @@ -388,7 +389,7 @@ function createSearchTermsWithList(aTermsArray) // add each item in termsArray to the search session var termsArray = aTermsArray.QueryInterface(Components.interfaces.nsISupportsArray); - for (var i = 0; i < termsArray.Count(); i++) + for (i = 0; i < termsArray.Count(); ++i) gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm)); }