rem: editCard.card.addCardToDatabase(uri); CallSaveListeners(); 
add:  var directory = GetDirectoryFromURI(uri);     var addedCard = directory.addCard(editCard.card); editCard.card = addedCard; NotifySaveListeners(); 
context: function NewCardOKButton(){  var popup = document.getElementById('abPopup');  if ( popup )  {    var uri = popup.getAttribute('value');    // FIX ME - hack to avoid crashing if no ab selected because of blank option bug from template    // should be able to just remove this if we are not seeing blank lines in the ab popup    if ( !uri )      return false;  // don't close window    // -----    if ( editCard.card )    {      SetCardValues(editCard.card, document);      editCard.card.addCardToDatabase(uri);        CallSaveListeners();    }  }  return true;  // close the window}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d08d4d3f9753b01573c0820f3dc3010c62295d11/abCardOverlay.js/clean/mailnews/addrbook/resources/content/abCardOverlay.js