rem: else goEditCardDialog(resultsTree.getAttribute("ref"), card, top.gUpdateCardView); 
add: else { var updateFunc = ("gUpdateCardView" in top) ? top.gUpdateCardView : null; goEditCardDialog(resultsTree.getAttribute("ref"), card, updateFunc); } 
context: function AbEditCard(){  var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();  rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);  if (resultsTree.selectedItems && resultsTree.selectedItems.length == 1) {    var uri = resultsTree.selectedItems[0].getAttribute("id");    var card = rdf.GetResource(uri);    card = card.QueryInterface(Components.interfaces.nsIAbCard);    if (card.isMailList) {      var dirUri = dirTree.selectedItems[0].getAttribute("id");      listUri = dirUri + "/MailList" + card.dbRowID;      goEditListDialog(resultsTree.getAttribute("ref"), listUri);    }    else      goEditCardDialog(resultsTree.getAttribute("ref"), card, top.gUpdateCardView);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa3d4c9ca0286091205d749cf11d7086978776bf/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js