B2G/gecko/browser/base/content/browser-places.js
/**
   * Determines if a XUL element represents a static container.
   * @returns true if the element is a container element (menu or 
   *`         menu-toolbarbutton), false otherwise.
   */
Determines if a XUL element represents a static container.
@returns true if the element is a container element (menu or
`         menu-toolbarbutton), false otherwise.
Determines if a XUL element represents a static container . @returns true if the element is a container element ( menu or ` menu - toolbarbutton ) false otherwise .
function PMDH__isContainer(node) {
    let isMenu = node.localName == "menu" ||
                 (node.localName == "toolbarbutton" &&
                  node.getAttribute("type") == "menu");
    let isStatic = !("_placesNode" in node) && node.lastChild &&
                   node.lastChild.hasAttribute("placespopup") &&
                   !node.parentNode.hasAttribute("placespopup");
    return isMenu && isStatic;
  }
function PMDH__isContainer ( node ) { let isMenu = node . localName == "menu" || ( node . localName == "toolbarbutton" && node . getAttribute ( "type" ) == "menu" ) ; let isStatic = ! ( "_placesNode" in node ) && node . lastChild && node . lastChild . hasAttribute ( "placespopup" ) && ! node . parentNode . hasAttribute ( "placespopup" ) ; return isMenu && isStatic ; }
Determines if a XUL element represents a static container.
Determines if a XUL element represents a static container .