Per shaver, this is a better way to check

git-svn-id: svn://10.0.0.236/trunk@195357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2006-04-25 16:18:39 +00:00
parent 5748991fb3
commit 033afe9733

View File

@@ -59,7 +59,7 @@ PrefAutoCompleteSearchHandler.prototype =
/* nsIAutoCompleteSearch */
startSearch : function startSearch(searchString, searchParam, previousResult, listener) {
var simpleresult;
if (Components.classes["@mozilla.org/autocomplete/simple-result;1"]) {
if ("@mozilla.org/autocomplete/simple-result;1" in Components.classes) {
var result = Components.classes["@mozilla.org/autocomplete/simple-result;1"].createInstance();
simpleresult = result.QueryInterface(Components.interfaces.nsIAutoCompleteSimpleResult);
} else {