rem: var isPersonalOrCollectedAbsSelectedForDeletion = false; var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); if (!parentArray) return; 
add: var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); if (!parentArray) return; 
context: function AbDeleteDirectory(){    var selectedABURI = GetSelectedDirectory();    if (!selectedABURI) return;    var isPersonalOrCollectedAbsSelectedForDeletion = false;    var parentArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);    if (!parentArray)       return;     var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    // 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 parentRow = GetParentRow(dirTree, dirTree.currentIndex);      var parentId;      if (parentRow == -1)        parentId = "moz-abdirectory://";      else	        parentId = dirTree.builderView.getResourceAtIndex(parentRow).Value;      var parentDir = GetDirectoryFromURI(parentId);      parentArray.AppendElement(parentDir);    }    else {      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 (!promptService.confirm(window, null, confirmDeleteMessage))       return;    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);    SelectFirstAddressBook();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3179842055afc433f0a4b71dba10bda952eca5d9/addressbook.js/buggy/mailnews/addrbook/resources/content/addressbook.js