B2G/gecko/browser/base/content/newtab/drop.js
/**
   * Time a rearrange with a little delay.
   * @param aCell The drop target cell.
   */
Time a rearrange with a little delay.
@param aCell The drop target cell.
Time a rearrange with a little delay . @param aCell The drop target cell .
function Drop_delayedRearrange(aCell) {
    if (this._lastDropTarget == aCell)
      return;
    let self = this;
    function callback() {
      self._rearrangeTimeout = null;
      self._rearrange(aCell);
    }
    this._cancelDelayedArrange();
    this._rearrangeTimeout = setTimeout(callback, DELAY_REARRANGE_MS);
    this._lastDropTarget = aCell;
  }
function Drop_delayedRearrange ( aCell ) { if ( this . _lastDropTarget == aCell ) return ; let self = this ; function callback ( ) { self . _rearrangeTimeout = null ; self . _rearrange ( aCell ) ; } this . _cancelDelayedArrange ( ) ; this . _rearrangeTimeout = setTimeout ( callback , DELAY_REARRANGE_MS ) ; this . _lastDropTarget = aCell ; }
Time a rearrange with a little delay.
Time a rearrange with a little delay .
// The last drop target didn't change so there's no need to re-arrange. // Store the last drop target.