B2G/gecko/browser/base/content/newtab/sites.js
/**
   * Adds event handlers for the site and its buttons.
   */
Adds event handlers for the site and its buttons.
Adds event handlers for the site and its buttons .
function Site_addEventHandlers() {
    this._node.addEventListener("dragstart", this, false);
    this._node.addEventListener("dragend", this, false);
    let controls = this.node.querySelectorAll(".newtab-control");
    for (let i = 0; i < controls.length; i++)
      controls[i].addEventListener("click", this, false);
  }
function Site_addEventHandlers ( ) { this . _node . addEventListener ( "dragstart" , this , false ) ; this . _node . addEventListener ( "dragend" , this , false ) ; let controls = this . node . querySelectorAll ( ".newtab-control" ) ; for ( let i = 0 ; i < controls . length ; i ++ ) controls [ i ] . addEventListener ( "click" , this , false ) ; }
Adds event handlers for the site and its buttons.
Adds event handlers for the site and its buttons .
// Register drag-and-drop event handlers.