add: 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; } 
context: function refreshCalendarQuery(){    var filter = this.calendar.ITEM_FILTER_TYPE_EVENT |                 this.calendar.ITEM_FILTER_COMPLETED_ALL |                 this.calendar.ITEM_FILTER_CLASS_OCCURRENCES;    this.periods.forEach(function (p) { p.events = []; });    this.calendar.getItems(filter, 0, this.today.start, this.soon.end,                           this.calendarOpListener);    void("Calendar query started (" + this.today.start + " -> " + this.soon.end + ")\n");};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4f00c557dca805987089097023625716754c766c/agenda-tree.js/buggy/calendar/lightning/content/agenda-tree.js