B2G/gecko/testing/peptest/peptest/extension/resource/mozmill/driver/controller.js
/**
   * Retrieve the specified menu entry
   *
   * @param {string} itemSelector
   *        jQuery like selector string of the menu item
   * @returns {ElemBase} Menu element
   * @throws Error If menu element has not been found
   */
Retrieve the specified menu entry
@param {string} itemSelector
jQuery like selector string of the menu item
@returns {ElemBase} Menu element
@throws Error If menu element has not been found
Retrieve the specified menu entry @param { string } itemSelector jQuery like selector string of the menu item @returns { ElemBase } Menu element @throws Error If menu element has not been found
function Menu_getItem(itemSelector) {
    var node = this._menu.getNode().querySelector(itemSelector);
    if (!node) {
      throw new Error("Menu entry '" + itemSelector + "' not found.");
    }
    return new mozelement.Elem(node);
  }
function Menu_getItem ( itemSelector ) { var node = this . _menu . getNode ( ) . querySelector ( itemSelector ) ; if ( ! node ) { throw new Error ( "Menu entry '" + itemSelector + "' not found." ) ; } return new mozelement . Elem ( node ) ; }
Retrieve the specified menu entry
 @param {string} itemSelector
        jQuery like selector string of the menu item
 @returns {ElemBase} Menu element
 @throws Error If menu element has not been found
Retrieve the specified menu entry @param { string } itemSelector jQuery like selector string of the menu item @returns { ElemBase } Menu element @throws Error If menu element has not been found