function(email) { if (emails.length > 0) emails += ";"; emails += encodeURIComponent(email); } ); 
function( subComp ) { function patchTimezone(subComp, attr, xprop) { var dt = subComp[attr]; if (dt) { if (LOG_LEVEL > 2) { log(attr + " is " + dt, this_); } var tzid = subComp.getFirstProperty(xprop); if (tzid != null) { subComp[attr] = dt.getInTimezone(tzid.value); if (LOG_LEVEL > 2) { log("patching " + xprop + " from " + dt + " to " + subComp[attr], this_); } } } }  patchTimezone(subComp, "startTime", "X-NSCP-DTSTART-TZID"); var item = null; switch (subComp.componentType) { case "VEVENT": { patchTimezone(subComp, "endTime", "X-NSCP-DTEND-TZID"); item = new CalEvent(); item.icalComponent = subComp; break; } case "VTODO": { patchTimezone(subComp, "dueTime", "X-NSCP-DUE-TZID"); item = new CalTodo(); item.icalComponent = subComp; switch (itemFilter & calICalendar.ITEM_FILTER_COMPLETED_ALL) { case calICalendar.ITEM_FILTER_COMPLETED_YES: if (!item.isCompleted) { delete item; item = null; } break; case calICalendar.ITEM_FILTER_COMPLETED_NO: if (item.isCompleted) { delete item; item = null; } break; }       if (item) { item.alarmOffset = null; item.alarmLastAck = null; } break; } } if (item) {             if (!item.title) {   switch (item.privacy) { case "PRIVATE": item.title = g_privateItemTitle; break; case "CONFIDENTIAL": item.title = g_confidentialItemTitle; break; } }  item.calendar = this_.superCalendar; var rid = item.recurrenceId; if (rid) { item.recurrenceInfo = null; var startDate = (isEvent(item) ? item.startDate : item.entryDate); if (startDate && startDate.isDate && !rid.isDate) {   rid = rid.getInTimezone(startDate.timezone); rid.isDate = true; item.recurrenceId = rid; } if (LOG_LEVEL > 1) { log("exception item: " + item.title + "\nrid=" + rid.icalString + "\nitem.id=" + item.id, this_); } excItems.push(item); } else if (item.recurrenceInfo) { unexpandedItems.push(item); uid2parent[item.id] = item; } else if (maxResult == 0 || items.length < maxResult) { if (LOG_LEVEL > 2) { log("item: " + item.title + "\n" + item.icalString, this_); } if (!bLeaveMutable) item.makeImmutable(); items.push(item); } } }, 
                function(email) {                    if (emails.length > 0)                        emails += ";";                    emails += encodeURIComponent(email);                } );
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a8adf4992620da379274cea3395ed3099b6769d6/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js