rem: function( data ) { var wcapResponse = new WcapResponse(); try { try { wcapResponse.data = dataConvFunc( data, wcapResponse ); 
add: function() { if (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId) { if (timedOutSessionId != null) { this_.m_sessionId = null; this_.log( "session timeout; prompting to reconnect." ); var prompt =getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); if (!prompt.confirm( bundle.GetStringFromName( "reconnectConfirmation.label" ), bundle.formatStringFromName( "reconnectConfirmation.text", [this_.uri.hostPort], 1 ) )) { this_.m_bNoLoginsAnymore = true; } } if (!this_.m_bNoLoginsAnymore) this_.getSessionId_();  if (this_.m_sessionId != null) { this_.getSupportedTimezones(true /* refresh */); this_.getServerTimeDiff(true /* refresh */);  var cals = this_.getSubscribedCalendars({}); for each ( cal in cals ) { cal.getCalProps_(true /* async */); } } 
context:             function( data ) {                var wcapResponse = new WcapResponse();                try {                    try {                        wcapResponse.data = dataConvFunc(                            data, wcapResponse );                    }                    catch (exc) {                        if (exc == Components.interfaces.                            calIWcapErrors.WCAP_LOGIN_FAILED) /* timeout */ {                            // getting a new session will throw any exception in                            // this block, thus it is notified into receiverFunc                            this_.getSessionId(                                sessionId /* (old) timed-out session */ );                            // try again:                            this_.issueRequest(                                url, issueFunc, dataConvFunc, receiverFunc );                            return;                        }                        throw exc; // rethrow                    }                }                catch (exc) {                    // setting the request's exception will rethrow exception                    // when request's data is retrieved.                    wcapResponse.exception = exc;                }                receiverFunc( wcapResponse );            } );
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/91e55737541dcc44b49686710a0aa3138569631e/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js