B2G/gecko/browser/components/places/content/treeView.js
/**
   * Given a row, finds and returns the parent details of the associated node.
   *
   * @param aChildRow
   *        Row number.
   * @return [parentNode, parentRow]
   */
Given a row, finds and returns the parent details of the associated node.
@param aChildRow
Row number.
@return [parentNode, parentRow]
Given a row finds and returns the parent details of the associated node . @param aChildRow Row number . @return [ parentNode parentRow ]
function PTV__getParentByChildRow(aChildRow) {
    let node = this._getNodeForRow(aChildRow);
    let parent = (node === null) ? this._rootNode : node.parent;
    if (parent == this._rootNode)
      return [this._rootNode, -1];
    let parentRow = this._rows.lastIndexOf(parent, aChildRow - 1);
    return [parent, parentRow];
  }
function PTV__getParentByChildRow ( aChildRow ) { let node = this . _getNodeForRow ( aChildRow ) ; let parent = ( node === null ) ? this . _rootNode : node . parent ; if ( parent == this . _rootNode ) return [ this . _rootNode , - 1 ] ; let parentRow = this . _rows . lastIndexOf ( parent , aChildRow - 1 ) ; return [ parent , parentRow ] ; }
Given a row, finds and returns the parent details of the associated node.
Given a row finds and returns the parent details of the associated node .
// The root node is never visible