rem: for each ( cal in cals ) { if (bSubscribe) { this.m_calIdToCalendar[ encodeURIComponent(cal.calId)] = cal; } else {  this.m_calIdToCalendar[ encodeURIComponent(cal.calId)] = null; } } 
context:     modifyCalendarSubscriptions:    function( cals, bSubscribe )    {        try {//             this.assureLoggedIn();            var url = this.getCommandUrl(                bSubscribe ? "subscribe_calendars" : "unsubscribe_calendars" );            var calId = "";            for each ( var cal in cals ) {                if (calId.length > 0)                    calId += ";";                calId += encodeURIComponent(cal.calId);            }            url += ("&calid=" + calId);            this.issueSyncRequest(url + "&fmt-out=text%2Fxml", stringToXml);            this.m_userPrefs = null; // reread prefs            for each ( cal in cals ) {                if (bSubscribe) {                    this.m_calIdToCalendar[                        encodeURIComponent(cal.calId)] = cal;                }                else { // remove from cached instances                    // xxx todo: delete here?                    this.m_calIdToCalendar[                        encodeURIComponent(cal.calId)] = null;                }            }        }        catch (exc) {            this.logError( exc );            throw exc;        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9484cd5028816c4e1bd9dd2ed1d9d090116e32ad/calWcapSession.js/clean/calendar/providers/wcap/calWcapSession.js