rem: var directory = item.QueryInterface(Components.interfaces.nsIAbDirectory);    if (directory && directory == GetAbView().directory) { 
add:   if (gPreviousDirTreeIndex == -1) { 
context:   onItemRemoved: function(parentDir, item) {    // will only be called when an addressbook is deleted    try {      var directory = item.QueryInterface(Components.interfaces.nsIAbDirectory);      // check if the item being removed is the directory      // that we are showing in the addressbook      // if so, select the personal addressbook (it can't be removed)      if (directory && directory == GetAbView().directory) {        SelectFirstAddressBook();      }    }    catch (ex) {    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/058441f0d4af83d54f51a89302628702b9ac50c2/addressbook.js/clean/mail/components/addrbook/content/addressbook.js