B2G/gecko/browser/devtools/webconsole/HUDService.jsm
/**
   * Animates the Console appropriately.
   *
   * @param string aHUDId The ID of the console.
   * @param string aDirection Whether to animate the console appearing
   *        (ANIMATE_IN) or disappearing (ANIMATE_OUT).
   * @param function aCallback An optional callback, which will be called with
   *        the "transitionend" event passed as a parameter once the animation
   *        finishes.
   */
Animates the Console appropriately.
@param string aHUDId The ID of the console.
@param string aDirection Whether to animate the console appearing
(ANIMATE_IN) or disappearing (ANIMATE_OUT).
@param function aCallback An optional callback, which will be called with
the "transitionend" event passed as a parameter once the animation
finishes.
Animates the Console appropriately . @param string aHUDId The ID of the console . @param string aDirection Whether to animate the console appearing ( ANIMATE_IN ) or disappearing ( ANIMATE_OUT ) . @param function aCallback An optional callback which will be called with the " transitionend " event passed as a parameter once the animation finishes .
function HS_animate(aHUDId, aDirection, aCallback)
  {
    let hudBox = this.getHudReferenceById(aHUDId).iframe;
    if (!hudBox.hasAttribute("animated")) {
      if (aCallback) {
        aCallback();
      }
      return;
    }
    switch (aDirection) {
      case ANIMATE_OUT:
        hudBox.style.height = 0;
        break;
      case ANIMATE_IN:
        this.resetHeight(aHUDId);
        break;
    }
    if (aCallback) {
      hudBox.addEventListener("transitionend", aCallback, false);
    }
  }
function HS_animate ( aHUDId , aDirection , aCallback ) { let hudBox = this . getHudReferenceById ( aHUDId ) . iframe ; if ( ! hudBox . hasAttribute ( "animated" ) ) { if ( aCallback ) { aCallback ( ) ; } return ; } switch ( aDirection ) { case ANIMATE_OUT : hudBox . style . height = 0 ; break ; case ANIMATE_IN : this . resetHeight ( aHUDId ) ; break ; } if ( aCallback ) { hudBox . addEventListener ( "transitionend" , aCallback , false ) ; } }
Animates the Console appropriately.
Animates the Console appropriately .