rem:   gDownloadsView.clearSelection(); var rowCount = gDownloadsView.getRowCount(); if (selectedIndex >= rowCount) gDownloadsView.selectedIndex = rowCount - 1; else gDownloadsView.selectedIndex = selectedIndex  gDownloadsView.selectedItem.focus(); 
context: function onDownloadResume(aEvent){  var selectedIndex = gDownloadsView.selectedIndex;  gDownloadManager.resumeDownload(aEvent.target.id);  // now reset the richlistbox  gDownloadsView.clearSelection();  var rowCount = gDownloadsView.getRowCount();  if (selectedIndex >= rowCount)    gDownloadsView.selectedIndex = rowCount - 1;  else    gDownloadsView.selectedIndex = selectedIndex  gDownloadsView.selectedItem.focus();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/af8e1e31b4f4fbc9a757b7addc5e5952b584304e/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js