add: if (gOkCallback) { SetCardValues(editCard.card, document); var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); gOkCallback(addressbook.abCardToEscapedVCard(editCard.card)); return true; }  
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);      var directory = GetDirectoryFromURI(uri);      // replace editCard.card with the card we added      // so that save listeners can get / set attributes on      // the card that got created.      var addedCard = directory.addCard(editCard.card);      editCard.card = addedCard;      NotifySaveListeners();    }  }  return true;  // close the window}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/70d7cb685c01273409b91e5dcc79890e17d8108e/abCardOverlay.js/buggy/mail/components/addrbook/content/abCardOverlay.js