rem: var unifinderTree = document.getElementById(gUnifinderTreeName); 
add: var unifinderTree = document.getElementById("unifinder-search-results-tree"); 
context: function refreshEventTreeInternal(eventArray) {    var searchText = document.getElementById("unifinder-search-field").value;    searchText = searchText.toLowerCase();    // XXX match for strings with only whitespace. Skip those too    if (searchText.length) {        gEventArray = new Array();        var fieldsToSearch = ["DESCRIPTION", "LOCATION", "CATEGORIES", "URL"];        for (var j in eventArray) {            var event = eventArray[j];            if (event.title &&                event.title.toLowerCase().indexOf(searchText) != -1) {                gEventArray.push(event);            } else {                for (var k in fieldsToSearch) {                    var val = event.getProperty(fieldsToSearch[k]);                    if (val && val.toLowerCase().indexOf(searchText) != -1) {                        gEventArray.push(event);                        break;                    }                }            }        }    } else {        gEventArray = eventArray;    }    // Extra check to see if the events are in the daterange. Some providers    // are broken when looking at all-day events.    function dateFilter(event) {        // Using .compare on the views start and end, not on the events dates,        // because .compare uses the timezone of the datetime it is called on.        // The view's timezone is what is important here.        return ((!gEndDate || gEndDate.compare(event.startDate) >= 0) &&                (!gStartDate || gStartDate.compare(event.endDate) < 0));    }    gEventArray = gEventArray.filter(dateFilter);    var unifinderTree = document.getElementById(gUnifinderTreeName);    var arrayOfTreeCols = unifinderTree.getElementsByTagName("treecol");    for (var i = 0; i < arrayOfTreeCols.length; i++) {        if (arrayOfTreeCols[i].getAttribute("sortActive") == "true") {            unifinderTreeView.selectedColumn = arrayOfTreeCols[i].getAttribute("id");            unifinderTreeView.sortDirection = arrayOfTreeCols[i].getAttribute("sortDirection");            unifinderTreeView.sortStartedTime = new Date().getTime(); // for null/0 dates            gEventArray.sort(compareEvents);            break;        }    }    unifinderTree.view = unifinderTreeView;    unifinderTree.eventView = new calendarEventView(gEventArray);    // Select selected events in the tree.    selectSelectedEventsInTree(false);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/caae7cfe1ba6ba5c6c5b566ba81e180b15567544/calendar-unifinder.js/clean/calendar/base/content/calendar-unifinder.js