B2G/gecko/browser/devtools/webconsole/AutocompletePopup.jsm
/**
   * Find the richlistitem element that belongs to an item.
   *
   * @private
   *
   * @param object aItem
   *        The object you want found in the list.
   *
   * @return nsIDOMNode|null
   *         The nsIDOMNode that belongs to the given item object. This node is
   *         the richlistitem element.
   */
Find the richlistitem element that belongs to an item.
@private

@param object aItem
The object you want found in the list.

@return nsIDOMNode|null
The nsIDOMNode that belongs to the given item object. This node is
the richlistitem element.
Find the richlistitem element that belongs to an item . @private @param object aItem The object you want found in the list . @return nsIDOMNode|null The nsIDOMNode that belongs to the given item object . This node is the richlistitem element .
function AP__findListItem(aItem)
  {
    for (let i = 0; i < this._list.childNodes.length; i++) {
      let child = this._list.childNodes[i];
      if (child._autocompleteItem == aItem) {
        return child;
      }
    }
    return null;
  }
function AP__findListItem ( aItem ) { for ( let i = 0 ; i < this . _list . childNodes . length ; i ++ ) { let child = this . _list . childNodes [ i ] ; if ( child . _autocompleteItem == aItem ) { return child ; } } return null ; }
Find the richlistitem element that belongs to an item.
Find the richlistitem element that belongs to an item .