B2G/gecko/browser/devtools/shared/SplitView.jsm
/**
   * Set the item's CSS class name.
   * This sets the class on both the summary and details elements, retaining
   * any SplitView-specific classes.
   *
   * @param DOMElement aSummary
   *        Summary element of the item to set.
   * @param string aClassName
   *        One or more space-separated CSS classes.
   */
Set the item's CSS class name.
This sets the class on both the summary and details elements, retaining
any SplitView-specific classes.

@param DOMElement aSummary
Summary element of the item to set.
@param string aClassName
One or more space-separated CSS classes.
Set the item ' s CSS class name . This sets the class on both the summary and details elements retaining any SplitView - specific classes . @param DOMElement aSummary Summary element of the item to set . @param string aClassName One or more space - separated CSS classes .
function ASV_setItemClassName(aSummary, aClassName)
  {
    let binding = aSummary.getUserData(BINDING_USERDATA);
    let viewSpecific;
    viewSpecific = aSummary.className.match(/(splitview\-[\w-]+)/g);
    viewSpecific = viewSpecific ? viewSpecific.join(" ") : "";
    aSummary.className = viewSpecific + " " + aClassName;
    viewSpecific = binding._details.className.match(/(splitview\-[\w-]+)/g);
    viewSpecific = viewSpecific ? viewSpecific.join(" ") : "";
    binding._details.className = viewSpecific + " " + aClassName;
  }
function ASV_setItemClassName ( aSummary , aClassName ) { let binding = aSummary . getUserData ( BINDING_USERDATA ) ; let viewSpecific ; viewSpecific = aSummary . className . match ( / (splitview\-[\w-]+) / g ) ; viewSpecific = viewSpecific ? viewSpecific . join ( " " ) : "" ; aSummary . className = viewSpecific + " " + aClassName ; viewSpecific = binding . _details . className . match ( / (splitview\-[\w-]+) / g ) ; viewSpecific = viewSpecific ? viewSpecific . join ( " " ) : "" ; binding . _details . className = viewSpecific + " " + aClassName ; }
Set the item's CSS class name.
Set the item ' s CSS class name .