B2G/gecko/browser/devtools/webconsole/AutocompletePopup.jsm
/**
   * Append an item into the autocomplete list.
   *
   * @param object aItem
   *        The item you want appended to the list. The object must have a
   *        "label" property which is used as the displayed value.
   */
Append an item into the autocomplete list.
@param object aItem
The item you want appended to the list. The object must have a
"label" property which is used as the displayed value.
Append an item into the autocomplete list . @param object aItem The item you want appended to the list . The object must have a " label " property which is used as the displayed value .
function AP_appendItem(aItem)
  {
    let description = this._document.createElementNS(XUL_NS, "description");
    description.textContent = aItem.label;
    let listItem = this._document.createElementNS(XUL_NS, "richlistitem");
    listItem.appendChild(description);
    listItem._autocompleteItem = aItem;
    this._list.appendChild(listItem);
  }
function AP_appendItem ( aItem ) { let description = this . _document . createElementNS ( XUL_NS , "description" ) ; description . textContent = aItem . label ; let listItem = this . _document . createElementNS ( XUL_NS , "richlistitem" ) ; listItem . appendChild ( description ) ; listItem . _autocompleteItem = aItem ; this . _list . appendChild ( listItem ) ; }
Append an item into the autocomplete list.
Append an item into the autocomplete list .