rem: var calendar = getCalendar(); 
add: var ccalendar = getDisplayComposite(); 
context: function toDoUnifinderRefresh(){   var hideCompleted = document.getElementById("hide-completed-checkbox").checked;   var savedThis = this;   var refreshListener = {       mTaskArray: new Array(),       onOperationComplete: function (aCalendar, aStatus, aOperationType, aId, aDateTime) {           setTimeout(function () { refreshToDoTree (refreshListener.mTaskArray); }, 0);       },       onGetResult: function (aCalendar, aStatus, aItemType, aDetail, aCount, aItems) {           for (var i = 0; i < aCount; i++) {               refreshListener.mTaskArray.push(aItems[i]);           }       }   };   var calendar = getCalendar();   var filter = 0;   if (hideCompleted)       filter |= calendar.ITEM_FILTER_COMPLETED_NO;   else       filter |= calendar.ITEM_FILTER_COMPLETED_ALL;   filter |= calendar.ITEM_FILTER_TYPE_TODO;   calendar.getItems (filter, 0, null, null, refreshListener);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a326c1b96258e9a489ef580945ed55053d063126/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js