rem: var rangeCount = this.outliner.selection.getRangeCount(); 
add: var rangeCount = this.tree.selection.getRangeCount(); 
context: function pv_getcx(cx){    if (!cx)        cx = new Object();    var selection = this.outliner.selection;    var rec = this.childData.locateChildByVisualRow(selection.currentIndex);        if (!rec)    {        dd ("no current index.");        return cx;    }    cx.target = rec;        if (rec instanceof TOLabelRecord)    {        if (rec.label == MSG_BREAK_REC)            cx.breakpointLabel = true;        return cx;    }    if (rec instanceof BPRecord)    {        cx.breakpointRec = rec;        cx.url = cx.fileName = rec.fileName;        cx.lineNumber = rec.line;        cx.breakpointIndex = rec.childIndex;    }    else if (rec instanceof WindowRecord || rec instanceof FileRecord)    {        cx.url = cx.fileName = rec.url;    }        var rangeCount = this.outliner.selection.getRangeCount();    if (rangeCount > 0)    {        cx.breakpointRecList = new Array();        cx.breakpointIndexList = new Array();        cx.fileList = cx.urlList = new Array();    }        for (var range = 0; range < rangeCount; ++range)    {        var min = new Object();        var max = new Object();        this.outliner.selection.getRangeAt(range, min, max);        min = min.value;        max = max.value;        for (var i = min; i <= max; ++i)        {            rec = this.childData.locateChildByVisualRow(i);            if (rec instanceof BPRecord)            {                cx.breakpointRecList.push(rec);                cx.breakpointIndexList.push(rec.childIndex);                cx.fileList.push (rec.fileName);            }            else if (rec instanceof WindowRecord || rec instanceof FileRecord)            {                cx.fileList.push (rec.url);            }            }    }    return cx;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/venkman-trees.js/buggy/extensions/venkman/resources/content/venkman-trees.js