rem: if (mailingListCnt && cardCnt) return kListsAndCards; else if (mailingListCnt && !cardCnt) { if (mailingListCnt > 1) return kMultipleListsOnly; else return kSingleListOnly; } else if (!mailingListCnt && cardCnt) return kCardsOnly; 
add: return (mailingListCnt == 0) ? kCardsOnly : (cardCnt > 0) ? kListsAndCards : (mailingListCnt == 1) ? kSingleListOnly : kMultipleListsOnly; 
context: function GetSelectedCardTypes(){  var cards = GetSelectedAbCards();  if (!cards)    return kNothingSelected; // no view  var count = cards.length;  if (!count)    return kNothingSelected;  // nothing selected  var mailingListCnt = 0;  var cardCnt = 0;  for (var i = 0; i < count; i++) {     if (cards[i].isMailList)      mailingListCnt++;    else      cardCnt++;  }  if (mailingListCnt && cardCnt)    return kListsAndCards;        // lists and cards selected  else if (mailingListCnt && !cardCnt) {    if (mailingListCnt > 1)      return kMultipleListsOnly; // only multiple mailing lists selected    else      return kSingleListOnly;    // only single mailing list  }  else if (!mailingListCnt && cardCnt)    return kCardsOnly;           // only card(s) selected}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/307b41dbea88d2cdb6eb544b496f44439d6f4c31/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js