B2G/gecko/browser/base/content/browser-places.js
/**
   * Handles dragexit on the <menu> element.
   * @returns true if the element is a container element (menu or 
   *          menu-toolbarbutton), false otherwise.
   */
Handles dragexit on the  element.
@returns true if the element is a container element (menu or
menu-toolbarbutton), false otherwise.
Handles dragexit on the element . @returns true if the element is a container element ( menu or menu - toolbarbutton ) false otherwise .
function PMDH_onDragExit(event) {
    if (!this._isStaticContainer(event.target))
      return;
    if (this._loadTimer) {
      this._loadTimer.cancel();
      this._loadTimer = null;
    }
    this._closeTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
    this._closeTimer.initWithCallback(function() {
      this._closeTimer = null;
      let node = PlacesControllerDragHelper.currentDropTarget;
      let inHierarchy = false;
      while (node && !inHierarchy) {
        inHierarchy = node == event.target;
        node = node.parentNode;
      }
      if (!inHierarchy && event.target.lastChild &&
          event.target.lastChild.hasAttribute("autoopened")) {
        event.target.lastChild.removeAttribute("autoopened");
        event.target.lastChild.hidePopup();
      }
    }, this._springLoadDelay, Ci.nsITimer.TYPE_ONE_SHOT);
  }
function PMDH_onDragExit ( event ) { if ( ! this . _isStaticContainer ( event . target ) ) return ; if ( this . _loadTimer ) { this . _loadTimer . cancel ( ) ; this . _loadTimer = null ; } this . _closeTimer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; this . _closeTimer . initWithCallback ( function ( ) { this . _closeTimer = null ; let node = PlacesControllerDragHelper . currentDropTarget ; let inHierarchy = false ; while ( node && ! inHierarchy ) { inHierarchy = node == event . target ; node = node . parentNode ; } if ( ! inHierarchy && event . target . lastChild && event . target . lastChild . hasAttribute ( "autoopened" ) ) { event . target . lastChild . removeAttribute ( "autoopened" ) ; event . target . lastChild . hidePopup ( ) ; } } , this . _springLoadDelay , Ci . nsITimer . TYPE_ONE_SHOT ) ; }
Handles dragexit on the <menu> element.
Handles dragexit on the <menu > element .
// Closing menus in a Places popup is handled by the view itself.