B2G/gecko/browser/base/content/browser-places.js
/**
   * Called when the user enters the <menu> element during a drag.
   * @param   event
   *          The DragEnter event that spawned the opening. 
   */
Called when the user enters the  element during a drag.
@param   event
The DragEnter event that spawned the opening.
Called when the user enters the element during a drag . @param event The DragEnter event that spawned the opening .
function PMDH_onDragEnter(event) {
    if (!this._isStaticContainer(event.target))
      return;
    this._loadTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    this._loadTimer.initWithCallback(function() {
      PlacesMenuDNDHandler._loadTimer = null;
      event.target.lastChild.setAttribute("autoopened", "true");
      event.target.lastChild.showPopup(event.target.lastChild);
    }, this._springLoadDelay, Ci.nsITimer.TYPE_ONE_SHOT);
    event.preventDefault();
    event.stopPropagation();
  }
function PMDH_onDragEnter ( event ) { if ( ! this . _isStaticContainer ( event . target ) ) return ; this . _loadTimer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; this . _loadTimer . initWithCallback ( function ( ) { PlacesMenuDNDHandler . _loadTimer = null ; event . target . lastChild . setAttribute ( "autoopened" , "true" ) ; event . target . lastChild . showPopup ( event . target . lastChild ) ; } , this . _springLoadDelay , Ci . nsITimer . TYPE_ONE_SHOT ) ; event . preventDefault ( ) ; event . stopPropagation ( ) ; }
Called when the user enters the <menu> element during a drag.
Called when the user enters the <menu > element during a drag .
// Opening menus in a Places popup is handled by the view itself.