rem: function( wcapResponse ) { this_.syncChangesTo_resp( wcapResponse, syncState, listener, 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, "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 ); } } ); 
add: function( exc ) { if (listener) { listener.onOperationComplete( this_.superCalendar, Components.results.NS_ERROR_FAILURE, SYNC, null, exc ); } this_.logError( exc ); 
context:             function( wcapResponse ) {                this_.syncChangesTo_resp(                    wcapResponse, syncState, listener,                    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/ebe8d4a76407f9bea23ef37283e4d80e1b4c2aee/calWcapCalendarItems.js/clean/calendar/providers/wcap/calWcapCalendarItems.js