rem: top.addressbook.deleteAddressBooks(dirTree.database, parentArray, dirTree.selectedItems); 
add: var resourceArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); var selectedABResource = GetDirectoryFromURI(selectedABURI).QueryInterface(Components.interfaces.nsIRDFResource);  resourceArray.AppendElement(selectedABResource);  top.addressbook.deleteAddressBooks(dirTree.database, parentArray, resourceArray); 
context: function AbDeleteDirectory(){    var selArray = dirTree.selectedItems;    var count = selArray.length;    if (count != 1)        return;    var isPersonalOrCollectedAbsSelectedForDeletion = false;    var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);    if (!parentArray)       return;     var selectedABURI = selArray[0].getAttribute("id");    // check to see if personal or collected address books is selected for deletion.    // if yes, prompt the user an appropriate message saying these cannot be deleted    if ((selectedABURI != kCollectedAddressbookURI) &&        (selectedABURI != kPersonalAddressbookURI)) {      var parent = selArray[0].parentNode.parentNode;      if (parent) {        var parentId;        if (parent == dirTree)          parentId = "moz-abdirectory://";        else	          parentId = parent.getAttribute("id");        var parentDir = GetDirectoryFromURI(parentId);        parentArray.AppendElement(parentDir);      }    }    else {      var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);      if (promptService) {        promptService.alert(window,          gAddressBookBundle.getString("cannotDeleteTitle"),           gAddressBookBundle.getString("cannotDeleteMessage"));      }      return;    }    var confirmDeleteMessage;        var directory = GetDirectoryFromURI(selectedABURI);    if (directory.isMailList)       confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteMailingList");    else      confirmDeleteMessage = gAddressBookBundle.getString("confirmDeleteAddressbook");    if (!window.confirm(confirmDeleteMessage))       return;    top.addressbook.deleteAddressBooks(dirTree.database, parentArray, dirTree.selectedItems);    SelectFirstAddressBook();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f9e5499311fa16faa50e0287b8b5a26bb4693804/addressbook.js/buggy/mailnews/addrbook/resources/content/addressbook.js