rem: var filter = this.calendar.ITEM_FILTER_CLASS_OCCURRENCES; if (document.getElementById("hide-completed-checkbox").checked) { filter |= this.calendar.ITEM_FILTER_COMPLETED_NO; } else { filter |= this.calendar.ITEM_FILTER_COMPLETED_ALL; }  if (!this.filterType) this.filterType = 'all'; switch (this.filterType) { case 'all': filter |= this.calendar.ITEM_FILTER_TYPE_EVENT | this.calendar.ITEM_FILTER_TYPE_TODO; break; case 'events': filter |= this.calendar.ITEM_FILTER_TYPE_EVENT; break; case 'tasks': filter |= this.calendar.ITEM_FILTER_TYPE_TODO; break; }  this.periods.forEach(function (p) { p.events = []; }); this.calendar.getItems(filter, 0, this.today.start, this.soon.end, this.calendarOpListener); 
add: var refreshJob = {}; this.refreshQueue.push(refreshJob); this.popRefreshQueue(); 
context: function refreshCalendarQuery(){    var filter = this.calendar.ITEM_FILTER_CLASS_OCCURRENCES;    if (document.getElementById("hide-completed-checkbox").checked) {        filter |= this.calendar.ITEM_FILTER_COMPLETED_NO;    } else {        filter |= this.calendar.ITEM_FILTER_COMPLETED_ALL;    }    if (!this.filterType)        this.filterType = 'all';    switch (this.filterType) {        case 'all':             filter |= this.calendar.ITEM_FILTER_TYPE_EVENT |                      this.calendar.ITEM_FILTER_TYPE_TODO;            break;        case 'events':            filter |= this.calendar.ITEM_FILTER_TYPE_EVENT;            break;        case 'tasks':            filter |= this.calendar.ITEM_FILTER_TYPE_TODO;            break;    }    this.periods.forEach(function (p) { p.events = []; });    this.calendar.getItems(filter, 0, this.today.start, this.soon.end,                           this.calendarOpListener);};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/7c7a2f72dc51cc404376de2148cdffb3fbb2f789/agenda-tree.js/buggy/calendar/lightning/content/agenda-tree.js