rem: var filter = hideCompleted ? ccalendar.ITEM_FILTER_COMPLETED_NO : ccalendar.ITEM_FILTER_COMPLETED_ALL; filter |= ccalendar.ITEM_FILTER_TYPE_TODO; 
context: function toDoUnifinderRefresh() {    var hideCompleted = document.getElementById("hide-completed-checkbox").checked;    var ccalendar = getCompositeCalendar();    var filter = hideCompleted ?        ccalendar.ITEM_FILTER_COMPLETED_NO :        ccalendar.ITEM_FILTER_COMPLETED_ALL;    filter |= ccalendar.ITEM_FILTER_TYPE_TODO;    var tree = document.getElementById("unifinder-todo-tree");    tree.refresh(filter);    var deck = document.getElementById("view-deck");    var selectedShowCompleted =  deck.selectedPanel.showCompleted;    for each (view in deck.childNodes) {        view.showCompleted = !hideCompleted;    }    var selectedDay = deck.selectedPanel.selectedDay;    // only update view if hide completed has actually changed:    if ((deck.selectedPanel.showCompleted != selectedShowCompleted) && selectedDay) {        deck.selectedPanel.goToDay(selectedDay);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/d62566b4f81349066dceb6e3d2c0dfacb2bca70e/calendar-unifinder-todo.js/clean/calendar/base/content/calendar-unifinder-todo.js