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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user