public/front/js/New Tab_files/newTab.js
/**
   * Filter pinned sites out of the grid that are still on their old positions
   * and have not moved.
   * @param aSites The array of sites to filter.
   * @param aCell The drop target cell.
   * @return The filtered array of sites.
   */
Filter pinned sites out of the grid that are still on their old positions
and have not moved.
@param aSites The array of sites to filter.
@param aCell The drop target cell.
@return The filtered array of sites.
Filter pinned sites out of the grid that are still on their old positions and have not moved . @param aSites The array of sites to filter . @param aCell The drop target cell . @return The filtered array of sites .
function DropPreview_filterPinnedSites(aSites, aCell) {
    let draggedSite = gDrag.draggedSite;
    let range = this._getPinnedRange(aCell);
    return aSites.filter(function (aSite, aIndex) {
      if (!aSite || aSite == draggedSite || !aSite.isPinned())
        return false;
      let index = aSite.cell.index;
      return (index > range.end || index < range.start);
    });
  }
function DropPreview_filterPinnedSites ( aSites , aCell ) { let draggedSite = gDrag . draggedSite ; let range = this . _getPinnedRange ( aCell ) ; return aSites . filter ( function ( aSite , aIndex ) { if ( ! aSite || aSite == draggedSite || ! aSite . isPinned ( ) ) return false ; let index = aSite . cell . index ; return ( index > range . end || index < range . start ) ; } ) ; }
Filter pinned sites out of the grid that are still on their old positions
 and have not moved.
Filter pinned sites out of the grid that are still on their old positions and have not moved .
// When dropping on a cell that contains a pinned site make sure that all // pinned cells surrounding the drop target are moved as well. // The site must be valid, pinned and not the dragged site. // If it's not in the 'pinned range' it's a valid pinned site.