rem: this.issueAsyncRequest( 
add: this.issueSyncRequest( 
context: calWcapCalendar.prototype.getItem = function( id, iListener ){    // xxx todo: test    // xxx todo: howto detect whether to call    //           fetchevents_by_id ot fetchtodos_by_id?    //           currently drag/drop is implemented for events only,    //           try events first, fallback to todos... in the future...    this.log( ">>>>>>>>>>>>>>>> getItem() call!");    try {        var this_ = this;        var respFunc = function( wcapResponse ) {                           this_.getItems_resp( wcapResponse,                                                0, 1, null, null, iListener );                       };        var params = "&compressed=1&recurring=1&fmt-out=text%2Fcalendar";        params += ("&calid=" + encodeURIComponent(this.calId));        params += ("&uid=" + id);        try {            // most common: event            this.issueAsyncRequest(                this.getCommandUrl( "fetchevents_by_id" ) + params,                utf8ToIcal, respFunc );        }        catch (exc) {            // try again, may be a task:            this.issueAsyncRequest(                this.getCommandUrl( "fetchtodos_by_id" ) + params,                utf8ToIcal, respFunc );        }    }    catch (exc) {        if (iListener != null) {            iListener.onOperationComplete(                this.superCalendar, Components.results.NS_ERROR_FAILURE,                Components.interfaces.calIOperationListener.GET,                null, exc );        }        this.notifyError( exc );    }    this.log( "getItem() returning." );};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/318a30b964defb311d9cf0464a3354a583a7e8f0/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js