B2G/gecko/browser/modules/NewTabUtils.jsm
/**
   * Pins a link at the given position.
   * @param aLink The link to pin.
   * @param aIndex The grid index to pin the cell at.
   */
Pins a link at the given position.
@param aLink The link to pin.
@param aIndex The grid index to pin the cell at.
Pins a link at the given position . @param aLink The link to pin . @param aIndex The grid index to pin the cell at .
function PinnedLinks_pin(aLink, aIndex) {
    this.unpin(aLink);
    this.links[aIndex] = aLink;
    this.save();
  }
function PinnedLinks_pin ( aLink , aIndex ) { this . unpin ( aLink ) ; this . links [ aIndex ] = aLink ; this . save ( ) ; }
Pins a link at the given position.
Pins a link at the given position .
// Clear the link's old position, if any.