Bug 1125506 - silence warning about undefined params.idKey in nsAbAutoCompleteSearch.js. r=mkmelin
This commit is contained in:
Родитель
5fad6df825
Коммит
4c699a010b
|
@ -423,7 +423,7 @@ nsAbAutoCompleteSearch.prototype = {
|
||||||
while (allABs.hasMoreElements()) {
|
while (allABs.hasMoreElements()) {
|
||||||
let dir = allABs.getNext();
|
let dir = allABs.getNext();
|
||||||
if (dir instanceof Components.interfaces.nsIAbDirectory &&
|
if (dir instanceof Components.interfaces.nsIAbDirectory &&
|
||||||
dir.useForAutocomplete(params.idKey)) {
|
dir.useForAutocomplete(("idKey" in params) ? params.idKey : null)) {
|
||||||
this._searchCards(searchQuery, dir, result);
|
this._searchCards(searchQuery, dir, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче