B2G/gecko/browser/components/places/content/treeView.js
/**
   * Be careful, the parameter 'aIndex' here specifies the node's index in the
   * parent node, not the visible index.
   */
Be careful, the parameter 'aIndex' here specifies the node's index in the
parent node, not the visible index.
Be careful the parameter ' aIndex ' here specifies the node ' s index in the parent node not the visible index .
function PTV_nodeReplaced(aParentNode, aOldNode, aNewNode, aIndexDoNotUse) {
    NS_ASSERT(this._result, "Got a notification but have no result!");
    if (!this._tree || !this._result)
      return;
    let row = this._getRowForNode(aOldNode);
    if (row != -1) {
      this._rows[row] = aNewNode;
      this._tree.invalidateRow(row);
    }
  }
function PTV_nodeReplaced ( aParentNode , aOldNode , aNewNode , aIndexDoNotUse ) { NS_ASSERT ( this . _result , "Got a notification but have no result!" ) ; if ( ! this . _tree || ! this . _result ) return ; let row = this . _getRowForNode ( aOldNode ) ; if ( row != - 1 ) { this . _rows [ row ] = aNewNode ; this . _tree . invalidateRow ( row ) ; } }
Be careful, the parameter 'aIndex' here specifies the node's index in the
 parent node, not the visible index.
Be careful the parameter ' aIndex ' here specifies the node ' s index in the parent node not the visible index .
// Nothing to do if the replaced node was not set.