rem:       var observerService = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); observerService.addObserver( this, "quit-application", false /* don't hold weakly: xxx todo */ ); observerService.addObserver( this, "network:offline-about-to-go-offline", false /* don't hold weakly: xxx todo */ ); 
context: function calWcapSession() {    this.wrappedJSObject = this;    this.m_observers = [];    this.m_calIdToCalendar = {};    this.m_asyncQueue = new AsyncQueue();    this.m_calPropsTimer = new Timer();        // init queued calls:    this.getFreeBusyTimes = makeQueuedCall(        this.asyncQueue, this, this.getFreeBusyTimes_queued);    this.searchForCalendars = makeQueuedCall(        this.asyncQueue, this, this.searchForCalendars_queued);        // listen for shutdown, being logged out:    // network:offline-about-to-go-offline will be fired for    // XPCOM shutdown, too.    // xxx todo: alternatively, add shutdown notifications to cal manager    // xxx todo: how to simplify this for multiple topics?    var observerService = Components.classes["@mozilla.org/observer-service;1"]        .getService(Components.interfaces.nsIObserverService);    observerService.addObserver( this, "quit-application",                                 false /* don't hold weakly: xxx todo */ );    observerService.addObserver( this, "network:offline-about-to-go-offline",                                 false /* don't hold weakly: xxx todo */ );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/89b24d85225964d30a2d9a8ff00b22e173923eeb/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js