rem: syncState.acquire(); 
context:                         function( item ) {                            // don't delete anything that has been touched                            // by lastmods:                            for each ( var mid in modifiedItems ) {                                if (item.id == mid) {                                    this_.log(                                        "skipping deletion of " + item.id );                                    return;                                }                            }                            syncState.acquire();                            if (item.parentItem == item) {                                this_.log( "deleting " + item.id );                                destCal.deleteItem( item, deleteItemListener );                            }                            else {                                // modify parent instead of                                // straight-forward deleteItem(). WTF.                                var parent = item.parentItem.clone();                                parent.recurrenceInfo.removeOccurrenceAt(                                    item.recurrenceId );                                this_.log( "modifying " + parent.id );                                destCal.modifyItem( parent, item,                                                    deleteItemListener );                            }                        } );
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ef5f439089bc89236bbf44a59e15c2f7e1957891/calWcapCalendarItems.js/clean/calendar/providers/wcap/calWcapCalendarItems.js