B2G/gaia/apps/homescreen/js/dragdrop.js
/*
   * This method is invoked when dragging is finished. It checks if
   * there is overflow or not in a page and removes the last page when
   * is empty
   */
This method is invoked when dragging is finished. It checks if
there is overflow or not in a page and removes the last page when
is empty
This method is invoked when dragging is finished . It checks if there is overflow or not in a page and removes the last page when is empty
function stop(callback) {
    clearTimeout(disabledCheckingLimitsTimeout);
    isDisabledCheckingLimits = false;
    isDisabledDrop = false;
    transitioning = false;
    var page = getPage();
    var ensureCallbackID = null;
    DragLeaveEventManager.send(page, function(done) {
      if (ensureCallbackID !== null) {
        window.clearTimeout(ensureCallbackID);
        draggableIcon.onDragStop(callback);
      }
      done();
    }, true);
    ensureCallbackID = window.setTimeout(function() {
      ensureCallbackID = null;
      draggableIcon.onDragStop(callback);
    }, ENSURE_DRAG_END_DELAY);
  }
function stop ( callback ) { clearTimeout ( disabledCheckingLimitsTimeout ) ; isDisabledCheckingLimits = false ; isDisabledDrop = false ; transitioning = false ; var page = getPage ( ) ; var ensureCallbackID = null ; DragLeaveEventManager . send ( page , function ( done ) { if ( ensureCallbackID !== null ) { window . clearTimeout ( ensureCallbackID ) ; draggableIcon . onDragStop ( callback ) ; } done ( ) ; } , true ) ; ensureCallbackID = window . setTimeout ( function ( ) { ensureCallbackID = null ; draggableIcon . onDragStop ( callback ) ; } , ENSURE_DRAG_END_DELAY ) ; }
This method is invoked when dragging is finished.
This method is invoked when dragging is finished .
// We ensure that there is not an icon lost on the grid