B2G/gecko/browser/base/content/utilityOverlay.js
// Closes all popups that are ancestors of the node.
Closes all popups that are ancestors of the node.
Closes all popups that are ancestors of the node .
function closeMenus(node)
{
  if ("tagName" in node) {
    if (node.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    && (node.tagName == "menupopup" || node.tagName == "popup"))
      node.hidePopup();
    closeMenus(node.parentNode);
  }
}
function closeMenus ( node ) { if ( "tagName" in node ) { if ( node . namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" && ( node . tagName == "menupopup" || node . tagName == "popup" ) ) node . hidePopup ( ) ; closeMenus ( node . parentNode ) ; } }
Closes all popups that are ancestors of the node.
Closes all popups that are ancestors of the node .