rem: if (aCommand == "cmd_cleanUp" && this.isCommandEnabled(aCommand)) { gDownloadManager.cleanUp();   for (var i = gDownloadsView.children.length - 1; i >= 0; --i) { var elm = gDownloadsView.children[i]; var state = elm.getAttribute("state");  if (state != nsIDownloadManager.DOWNLOAD_NOTSTARTED && state != nsIDownloadManager.DOWNLOAD_DOWNLOADING && state != nsIDownloadManager.DOWNLOAD_PAUSED) gDownloadsView.removeChild(gDownloadsView.children[i]); }  this.onCommandUpdate(); } 
add: if (this.isCommandEnabled(aCommand)) this.commands[aCommand](gDownloadsView.selectedItem); 
context:   doCommand: function (aCommand)  {    if (aCommand == "cmd_cleanUp" && this.isCommandEnabled(aCommand)) {      gDownloadManager.cleanUp();      // Update UI      for (var i = gDownloadsView.children.length - 1; i >= 0; --i) {        var elm = gDownloadsView.children[i];        var state = elm.getAttribute("state");        if (state != nsIDownloadManager.DOWNLOAD_NOTSTARTED &&            state != nsIDownloadManager.DOWNLOAD_DOWNLOADING &&            state != nsIDownloadManager.DOWNLOAD_PAUSED)          gDownloadsView.removeChild(gDownloadsView.children[i]);      }      this.onCommandUpdate();    }  },  
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/42441b54422f51e39485c902f4b02d6124193ad6/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js