From 5577743d5a78f120f39a77e76ab942ffb7b9ea14 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Thu, 27 Jul 2006 14:58:41 +0000 Subject: [PATCH] Bug 230969 Warning: redeclaration of var categoryList patch by jw6057@bacon.qcc.mass.edu r=timeless sr=neil --- suite/common/search/search-editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/suite/common/search/search-editor.js b/suite/common/search/search-editor.js index 782a21a47c69..f5b7969588fb 100644 --- a/suite/common/search/search-editor.js +++ b/suite/common/search/search-editor.js @@ -81,6 +81,7 @@ function debug(msg) function doLoad() { + var categoryList = document.getElementById("categoryList"); // adjust category popup var internetSearch = Components.classes["@mozilla.org/rdf/datasource;1?name=internetsearch"].getService(); if (internetSearch) internetSearch = internetSearch.QueryInterface(Components.interfaces.nsIInternetSearchService); @@ -92,7 +93,6 @@ function doLoad() if (catDS) catDS = catDS.QueryInterface(Components.interfaces.nsIRDFDataSource); if (catDS) { - var categoryList = document.getElementById("categoryList"); if (categoryList) { categoryList.database.AddDataSource(catDS); @@ -134,7 +134,6 @@ function doLoad() debug("\nSearchPanelStartup: lastCategoryName = '" + lastCategoryName + "'\n"); // select the appropriate category - var categoryList = document.getElementById( "categoryList" ); var categoryPopup = document.getElementById( "categoryPopup" ); if( categoryList && categoryPopup ) {