rem:  var username = decodeURIComponent( thatUri.username ); if (username != "") { var nColon = username.indexOf(':'); this.m_userId = (nColon >= 0 ? username.substr(0, nColon) : username); } this.m_uri = thatUri.clone(); this.m_uri.userPass = "";  
add: this.m_observers = []; this.m_calIdToCalendar = {}; 
context: function calWcapSession( thatUri ) {    this.wrappedJSObject = this;    // sensible default for user id login:    var username = decodeURIComponent( thatUri.username );    if (username != "") {        var nColon = username.indexOf(':');        this.m_userId = (nColon >= 0 ? username.substr(0, nColon) : username);    }    this.m_uri = thatUri.clone();    this.m_uri.userPass = "";        // 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8c73ea0e85be532b32635bc10b6cd12610aa68f8/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js