B2G/gecko/browser/base/content/newtab/grid.js
/**
   * Creates the DOM fragment that is re-used when creating sites.
   */
Creates the DOM fragment that is re-used when creating sites.
Creates the DOM fragment that is re - used when creating sites .
function Grid_createSiteFragment() {
    let site = document.createElementNS(HTML_NAMESPACE, "div");
    site.classList.add("newtab-site");
    site.setAttribute("draggable", "true");
    site.innerHTML =
      '<a class="newtab-link">' +
      '  <span class="newtab-thumbnail"/>' +
      '  <span class="newtab-title"/>' +
      '</a>' +
      '<input type="button" title="' + newTabString("pin") + '"' +
      '       class="newtab-control newtab-control-pin"/>' +
      '<input type="button" title="' + newTabString("block") + '"' +
      '       class="newtab-control newtab-control-block"/>';
    this._siteFragment = document.createDocumentFragment();
    this._siteFragment.appendChild(site);
  }
function Grid_createSiteFragment ( ) { let site = document . createElementNS ( HTML_NAMESPACE , "div" ) ; site . classList . add ( "newtab-site" ) ; site . setAttribute ( "draggable" , "true" ) ; site . innerHTML = '<a class="newtab-link">' + '  <span class="newtab-thumbnail"/>' + '  <span class="newtab-title"/>' + '</a>' + '<input type="button" title="' + newTabString ( "pin" ) + '"' + '       class="newtab-control newtab-control-pin"/>' + '<input type="button" title="' + newTabString ( "block" ) + '"' + '       class="newtab-control newtab-control-block"/>' ; this . _siteFragment = document . createDocumentFragment ( ) ; this . _siteFragment . appendChild ( site ) ; }
Creates the DOM fragment that is re-used when creating sites.
Creates the DOM fragment that is re - used when creating sites .
// Create the site's inner HTML code.