rem: var rec = this.childData.locateChildByVisualRow(rowIndex); 
add: rec = this.childData.locateChildByVisualRow(rowIndex); 
context: function bov_rkeypress (event){    var rec;        if ("onRowCommand" in this && (event.keyCode == 13 || event.charCode == 32))    {        if (!this.selection)            return;                var rowIndex = this.tree.selection.currentIndex;        if (rowIndex == -1 || rowIndex > this.rowCount)            return;        rec = this.childData.locateChildByVisualRow(rowIndex);        if (!rec)        {            ASSERT (0, "bogus row index " + rowIndex);            return;        }        this.onRowCommand(rec, event);    }    else if ("onKeyPress" in this)    {        var rowIndex = this.tree.selection.currentIndex;        if (rowIndex != -1 && rowIndex < this.rowCount)        {            var rec = this.childData.locateChildByVisualRow(rowIndex);            if (!rec)            {                ASSERT (0, "bogus row index " + rowIndex);                return;            }        }        else        {            rec = null;        }                this.onKeyPress(rec, event);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6d3605984754042ac2ea071be474d6b8ed01f0eb/tree-utils.js/buggy/extensions/venkman/resources/content/tree-utils.js