rem:  tree.treeBoxObject.view.selection.select(-1); 
context: function DeleteSelectedItemFromTree    (tree, view, table, deletedTable, removeButton, removeAllButton) {  // remove selected items from list (by setting them to null) and place in deleted list  var selections = GetTreeSelections(tree);  for (var s=selections.length-1; s>= 0; s--) {    var i = selections[s];    deletedTable[deletedTable.length] = table[i];    table[i] = null;  }  // collapse list by removing all the null entries  for (var j=0; j<table.length; j++) {    if (table[j] == null) {      var k = j;      while ((k < table.length) && (table[k] == null)) {        k++;      }      table.splice(j, k-j);    }  }  // redisplay  var box = tree.treeBoxObject;  var firstRow = box.getFirstVisibleRow();  if (firstRow > (table.length-1) ) {    firstRow = table.length-1;  }  view.rowCount = table.length;  box.rowCountChanged(0, table.length);  box.scrollToRow(firstRow)  // update selection and/or buttons  if (table.length) {    // update selection    // note: we need to deselect before reselecting in order to trigger ...Selected method    var nextSelection = (selections[0] < table.length) ? selections[0] : table.length-1;    tree.treeBoxObject.view.selection.select(-1);     tree.treeBoxObject.view.selection.select(nextSelection);  } else {    // disable buttons    document.getElementById(removeButton).setAttribute("disabled", "true")    document.getElementById(removeAllButton).setAttribute("disabled","true");    // clear out selections    tree.treeBoxObject.view.selection.select(-1);   }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/93cc2f8a6ffe7524680ec99b90a7c2f0cde65a94/nsWalletTreeUtils.js/clean/extensions/wallet/cookieviewer/resources/content/nsWalletTreeUtils.js