B2G/gecko/browser/modules/NewTabUtils.jsm
/**
   * Finds the index of a given link in the list of pinned links.
   * @param aLink The link to find an index for.
   * @return The link's index.
   */
Finds the index of a given link in the list of pinned links.
@param aLink The link to find an index for.
@return The link's index.
Finds the index of a given link in the list of pinned links . @param aLink The link to find an index for . @return The link ' s index .
function PinnedLinks_indexOfLink(aLink) {
    for (let i = 0; i < this.links.length; i++) {
      let link = this.links[i];
      if (link && link.url == aLink.url)
        return i;
    }
    return -1;
  }
function PinnedLinks_indexOfLink ( aLink ) { for ( let i = 0 ; i < this . links . length ; i ++ ) { let link = this . links [ i ] ; if ( link && link . url == aLink . url ) return i ; } return - 1 ; }
Finds the index of a given link in the list of pinned links.
Finds the index of a given link in the list of pinned links .
// The given link is unpinned.