B2G/gecko/browser/base/content/newtab/dropPreview.js
/**
   * Checks if the given array of sites contains a pinned site that has
   * been pushed out of the grid.
   * @param aSites The array of sites to check.
   * @param aCell The drop target cell.
   * @return Whether there is an overflowed pinned cell.
   */
Checks if the given array of sites contains a pinned site that has
been pushed out of the grid.
@param aSites The array of sites to check.
@param aCell The drop target cell.
@return Whether there is an overflowed pinned cell.
Checks if the given array of sites contains a pinned site that has been pushed out of the grid . @param aSites The array of sites to check . @param aCell The drop target cell . @return Whether there is an overflowed pinned cell .
function DropPreview_hasOverflowedPinnedSite(aSites, aCell) {
    if (!aCell.containsPinnedSite())
      return false;
    let cells = gGrid.cells;
    if (aSites.length <= cells.length)
      return false;
    let overflowedSite = aSites[cells.length];
    return (overflowedSite && overflowedSite.isPinned());
  }
function DropPreview_hasOverflowedPinnedSite ( aSites , aCell ) { if ( ! aCell . containsPinnedSite ( ) ) return false ; let cells = gGrid . cells ; if ( aSites . length <= cells . length ) return false ; let overflowedSite = aSites [ cells . length ] ; return ( overflowedSite && overflowedSite . isPinned ( ) ) ; }
Checks if the given array of sites contains a pinned site that has
 been pushed out of the grid.
Checks if the given array of sites contains a pinned site that has been pushed out of the grid .
// If the drop target isn't pinned there's no way a pinned site has been // pushed out of the grid so we can just exit here. // No cells have been pushed out of the grid, nothing to do here. // Nothing to do if the site that got pushed out of the grid is not pinned.