B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Helper function to do commands on a specific download item.
   *
   * @param aEvent
   *        Event object for the event being handled.  If the event target is
   *        not a richlistitem that represents a download, this function will
   *        walk up the parent nodes until it finds a DOM node that is.
   * @param aCommand
   *        The command to be performed.
   */
Helper function to do commands on a specific download item.
@param aEvent
Event object for the event being handled.  If the event target is
not a richlistitem that represents a download, this function will
walk up the parent nodes until it finds a DOM node that is.
@param aCommand
The command to be performed.
Helper function to do commands on a specific download item . @param aEvent Event object for the event being handled . If the event target is not a richlistitem that represents a download this function will walk up the parent nodes until it finds a DOM node that is . @param aCommand The command to be performed .
function DV_onDownloadCommand(aEvent, aCommand)
  {
    let target = aEvent.target;
    while (target.nodeName != "richlistitem") {
      target = target.parentNode;
    }
    new DownloadsViewItemController(target).doCommand(aCommand);
  }
function DV_onDownloadCommand ( aEvent , aCommand ) { let target = aEvent . target ; while ( target . nodeName != "richlistitem" ) { target = target . parentNode ; } new DownloadsViewItemController ( target ) . doCommand ( aCommand ) ; }
Helper function to do commands on a specific download item.
Helper function to do commands on a specific download item .