rem: var newSelectedEvents = new Array(); var oldSelectedEvents = gCalendarWindow.EventSelection.selectedEvents; for (var i in oldSelectedEvents) { if (!oldSelectedEvents[i].calendar.uri.equals(aCalendar.uri)) newSelectedEvents.push(oldSelectedEvents[i]); } gCalendarWindow.EventSelection.setArrayToSelection(newSelectedEvents); 
context:     onCalendarRemoved: function (aCalendar) {        var item = getListItem(aCalendar);        if (item) {            var checkCell = item.firstChild;            checkCell.setAttribute('checked', false);        }        var newSelectedEvents = new Array();        var oldSelectedEvents = gCalendarWindow.EventSelection.selectedEvents;        for (var i in oldSelectedEvents) {            if (!oldSelectedEvents[i].calendar.uri.equals(aCalendar.uri))                 newSelectedEvents.push(oldSelectedEvents[i]);        }        gCalendarWindow.EventSelection.setArrayToSelection(newSelectedEvents);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/23fce7cac682e3a6c382c813fd5e068be567d78d/calendarManagement.js/clean/calendar/resources/content/calendarManagement.js