calWcapCalendar.prototype.syncChangesTo_resp = function( wcapResponse, syncState, listener, func ) { try { var icalRootComp = wcapResponse.data; var items = this.parseItems_( function(items) { items.forEach(func) }, icalRootComp, Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS, 0, null, null ); } catch (exc) { syncState.abort( exc ); } syncState.release(); }; 
function syncChangesTo_resp(request, err) { if (err) { log("SYNC failed!", this_); if (listener) { listener.onOperationComplete( this_.superCalendar, getResultCode(err), calIWcapCalendar.SYNC, null, err); } if (getResultCode(err) != calIWcapErrors.WCAP_LOGIN_FAILED) { this_.notifyError(err); } } else { log("SYNC succeeded.", this_); if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_OK, calIWcapCalendar.SYNC, null, now); } } }, 
calWcapCalendar.prototype.syncChangesTo_resp = function(    wcapResponse, syncState, listener, func ){    try {        var icalRootComp = wcapResponse.data; // first statement, may throw        var items = this.parseItems_(            function(items) { items.forEach(func) },            icalRootComp,            Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS,            0, null, null );    }    catch (exc) {        syncState.abort( exc );    }    syncState.release();};
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a8adf4992620da379274cea3395ed3099b6769d6/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js