rem: var searchTree = document.getElementById(gUnifinderTreeName); 
add: var searchTree = document.getElementById("unifinder-search-results-tree"); 
context: function selectSelectedEventsInTree(aEventsToSelect) {    if (doingSelection === true) {        return;    }    doingSelection = true;    if (aEventsToSelect === false) {        aEventsToSelect = currentView().getSelectedItems({});    }    var searchTree = document.getElementById(gUnifinderTreeName);    /**     * The following is a brutal hack, caused by     * http://lxr.mozilla.org/mozilla1.0/source/layout/xul/base/src/tree/src/nsTreeSelection.cpp#555     * and described in bug 168211     * http://bugzilla.mozilla.org/show_bug.cgi?id=168211     * Do NOT remove anything in the next 3 lines, or the selection in the tree will not work.     */    searchTree.onselect = null;    searchTree.removeEventListener("select", unifinderOnSelect, true);    searchTree.view.selection.selectEventsSuppressed = true;    searchTree.view.selection.clearSelection();    if (aEventsToSelect && aEventsToSelect.length == 1) {        var rowToScrollTo = searchTree.eventView.getRowOfCalendarEvent(aEventsToSelect[0]);        if (rowToScrollTo != "null") {           searchTree.treeBoxObject.ensureRowIsVisible(rowToScrollTo);           searchTree.view.selection.timedSelect(rowToScrollTo, 1);        }    } else if (aEventsToSelect && aEventsToSelect.length > 1) {        for (var i in aEventsToSelect) {            var row = searchTree.eventView.getRowOfCalendarEvent(aEventsToSelect[i]);            searchTree.view.selection.rangedSelect(row, row, true);        }    }    // This needs to be in a setTimeout    setTimeout("resetAllowSelection()", 1);}
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