rem: var username = decodeURIComponent( thatUri.username ); if (username != "") {   this.m_defaultCalId = username; var nColon = username.indexOf(':'); this.m_userId = (nColon >= 0 ? username.substr(0, nColon) : username); } this.m_uri = thatUri.clone(); this.log( "setting uri to " + this.uri.spec ); 
add: var username = decodeURIComponent(thatUri.username); if (username.length > 0) this.credentials.userId = username; log("set uri: " + this.uri.spec, this); 
context:     set uri( thatUri )    {        if (this.m_uri == null || thatUri == null ||            !this.m_uri.equals(thatUri))        {            this.logout();            this.m_uri = null;            if (thatUri != null) {                // sensible default for user id login:                var username = decodeURIComponent( thatUri.username );                if (username != "") {                    // xxx todo: might vanish soon...                    // patching the default calId via url:                    this.m_defaultCalId = username;                    var nColon = username.indexOf(':');                    this.m_userId = (nColon >= 0                                     ? username.substr(0, nColon) : username);                }                this.m_uri = thatUri.clone();                this.log( "setting uri to " + this.uri.spec );            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/5f32e44ee9e35bc03083914348887f8453206bf7/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js