rem: function( item ) { var dtCreated = item.getProperty("CREATED"); var bAdd = (dtCreated == null || dtFrom == null || dtCreated.compare(dtFrom) >= 0); modifiedItems.push( item.id ); if (bAdd) {   this_.log( "new item: " + item.id, 
add: function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, function( item ) {   if (modifiedItems.some( function(mid) { return (item.id == mid); } )) { this_.log( "skipping deletion of " + item.id, "syncChangesTo_resp()" ); return; } if (isParent(item)) { this_.log( "deleted item: " + item.id, 
context:                     function( item ) {                        var dtCreated = item.getProperty("CREATED");                        var bAdd = (dtCreated == null || dtFrom == null ||                                    dtCreated.compare(dtFrom) >= 0);                        modifiedItems.push( item.id );                        if (bAdd) {                            // xxx todo: verify whether exceptions                            //           have been written                            this_.log( "new item: " + item.id,                                       "syncChangesTo_resp()" );                            if (destCal) {                                syncState.acquire();                                destCal.addItem( item, addItemListener );                            }                            if (calObserver)                                calObserver.onAddItem( item );                        }                        else {                            this_.log( "modified item: " + item.id,                                       "syncChangesTo_resp()" );                            if (destCal) {                                syncState.acquire();                                destCal.modifyItem( item, null,                                                    modifyItemListener );                            }                            if (calObserver)                                calObserver.onModifyItem( item, null );                        }                    } );
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9484cd5028816c4e1bd9dd2ed1d9d090116e32ad/calWcapCalendarItems.js/clean/calendar/providers/wcap/calWcapCalendarItems.js