rem:   gDownloadsView.clearSelection(); if (selectedIndex >= gDownloadsView.getRowCount()) gDownloadsView.selectedIndex = selectedIndex - 1; else gDownloadsView.selectedIndex = selectedIndex;  gDownloadsView.focus();  
context: function onDownloadRemove(aEvent){  if (aEvent.target.removable) {    var selectedIndex = gDownloadsView.selectedIndex;    gDownloadManager.removeDownload(aEvent.target.id);    // now reset the richlistbox since the template was rebuilt    gDownloadsView.clearSelection();    if (selectedIndex >= gDownloadsView.getRowCount())      gDownloadsView.selectedIndex = selectedIndex - 1;    else      gDownloadsView.selectedIndex = selectedIndex;    gDownloadsView.focus();    gDownloadViewController.onCommandUpdate();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/11bd6bff69b485c82262126f8b4c7d00bac721a7/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js