From 4c699a010b62f5f8bbeb5b1c5b47b5b5fd63aa7c Mon Sep 17 00:00:00 2001 From: aceman Date: Thu, 26 May 2016 22:28:52 +0200 Subject: [PATCH] Bug 1125506 - silence warning about undefined params.idKey in nsAbAutoCompleteSearch.js. r=mkmelin --- mailnews/addrbook/src/nsAbAutoCompleteSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/addrbook/src/nsAbAutoCompleteSearch.js b/mailnews/addrbook/src/nsAbAutoCompleteSearch.js index 7eb904681b..c918858c71 100644 --- a/mailnews/addrbook/src/nsAbAutoCompleteSearch.js +++ b/mailnews/addrbook/src/nsAbAutoCompleteSearch.js @@ -423,7 +423,7 @@ nsAbAutoCompleteSearch.prototype = { while (allABs.hasMoreElements()) { let dir = allABs.getNext(); if (dir instanceof Components.interfaces.nsIAbDirectory && - dir.useForAutocomplete(params.idKey)) { + dir.useForAutocomplete(("idKey" in params) ? params.idKey : null)) { this._searchCards(searchQuery, dir, result); } }