B2G/gecko/browser/devtools/shared/SplitView.jsm
/**
    * Set the active item's summary element.
    *
    * @param DOMElement aSummary
    */
Set the active item's summary element.
Set the active item ' s summary element .
set activeSummary(aSummary)
  {
    if (aSummary == this._activeSummary) {
      return;
    }
    if (this._activeSummary) {
      let binding = this._activeSummary.getUserData(BINDING_USERDATA);
      if (binding.onHide) {
        binding.onHide(this._activeSummary, binding._details, binding.data);
      }
      this._activeSummary.classList.remove("splitview-active");
      binding._details.classList.remove("splitview-active");
    }
    if (!aSummary) {
      return;
    }
    let binding = aSummary.getUserData(BINDING_USERDATA);
    aSummary.classList.add("splitview-active");
    binding._details.classList.add("splitview-active");
    this._activeSummary = aSummary;
    if (binding.onShow) {
      binding.onShow(aSummary, binding._details, binding.data);
    }
  }
set activeSummary ( aSummary ) { if ( aSummary == this . _activeSummary ) { return ; } if ( this . _activeSummary ) { let binding = this . _activeSummary . getUserData ( BINDING_USERDATA ) ; if ( binding . onHide ) { binding . onHide ( this . _activeSummary , binding . _details , binding . data ) ; } this . _activeSummary . classList . remove ( "splitview-active" ) ; binding . _details . classList . remove ( "splitview-active" ) ; } if ( ! aSummary ) { return ; } let binding = aSummary . getUserData ( BINDING_USERDATA ) ; aSummary . classList . add ( "splitview-active" ) ; binding . _details . classList . add ( "splitview-active" ) ; this . _activeSummary = aSummary ; if ( binding . onShow ) { binding . onShow ( aSummary , binding . _details , binding . data ) ; } }
Set the active item's summary element.
Set the active item ' s summary element .