B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Starts executing the destruction sequence and issues a callback function
   * when finished.
   *
   * @param {Function} aCallback
   *                   the destruction finished callback
   */
Starts executing the destruction sequence and issues a callback function
when finished.

@param {Function} aCallback
the destruction finished callback
Starts executing the destruction sequence and issues a callback function when finished . @param { Function } aCallback the destruction finished callback
function TV_executeDestruction(aCallback)
  {
    if (!this._isExecutingDestruction) {
      this._isExecutingDestruction = true;
      this._onDestructionFinished = aCallback;
      if (this._time > OUTRO_TRANSITION_DURATION) {
        this._time = 0;
        this._redraw = true;
      } else {
        aCallback();
      }
    }
  }
function TV_executeDestruction ( aCallback ) { if ( ! this . _isExecutingDestruction ) { this . _isExecutingDestruction = true ; this . _onDestructionFinished = aCallback ; if ( this . _time > OUTRO_TRANSITION_DURATION ) { this . _time = 0 ; this . _redraw = true ; } else { aCallback ( ) ; } } }
Starts executing the destruction sequence and issues a callback function
 when finished.
Starts executing the destruction sequence and issues a callback function when finished .
// if we execute the destruction after the initialization finishes, // proceed normally; otherwise, skip everything and immediately issue // the callback