rem:  throw "Broken by the switch to the new views"; 
add: var items = []; var listener = { onOperationComplete: function selectAll_ooc(aCalendar, aStatus, aOperationType, aId, aDetail) { currentView().setSelectedItems(items.length, items, false); }, onGetResult: function selectAll_ogr(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) { for each (var item in aItems) { items.push(item); } } };  var composite = getCompositeCalendar(); var filter = composite.ITEM_FILTER_COMPLETED_ALL | composite.ITEM_FILTER_CLASS_OCCURRENCES;  if (currentView().tasksInView) { filter |= composite.ITEM_FILTER_TYPE_ALL; } else { filter |= composite.ITEM_FILTER_TYPE_EVENT; }   var end = currentView().endDay.clone(); end.day += 1; end.normalize();  composite.getItems(filter, 0, currentView().startDay, end, listener); 
context: function selectAllEvents(){    //XXX    throw "Broken by the switch to the new views"; }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/23fce7cac682e3a6c382c813fd5e068be567d78d/calendar.js/clean/calendar/resources/content/calendar.js