From 7277c991a71bbe88a1250983e161a7b398f43f03 Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 5 Oct 2004 03:26:39 +0000 Subject: [PATCH] fix js warnings, 262885 patch by gautheri@noos.fr, r/sr=bienvenu --- mailnews/base/resources/content/commandglue.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/base/resources/content/commandglue.js b/mailnews/base/resources/content/commandglue.js index d9662ac9aeb4..a1d9587c2518 100644 --- a/mailnews/base/resources/content/commandglue.js +++ b/mailnews/base/resources/content/commandglue.js @@ -1111,14 +1111,14 @@ function GetScopeForFolder(folder) function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms) { - var count = new Object; + var i; gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession); gMailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession); - for (var i in folderUrisToSearch) + for (i in folderUrisToSearch) { var realFolderRes = GetResourceFromUri(folderUrisToSearch[i]); var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder); @@ -1127,7 +1127,7 @@ function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms) } var termsArray = searchTerms.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)); }