rem: var cal; switch (CACHE) {      default: cal = new calWcapCalendar( null /* calId: null indicates default calendar */, new calWcapSession() ); cal.session.defaultCalendar = cal; break; } 
add: var session = new calWcapSession(); var cal = createWcapCalendar( null /* calId: null indicates default calendar */, session ); session.defaultCalendar = cal; 
context:             createInstance:            function( outer, iid ) {                if (outer != null)                    throw Components.results.NS_ERROR_NO_AGGREGATION;                var cal;                switch (CACHE) {// unsupported until fixed://                 case "memory"://                 case "storage"://                     cal = new calWcapCachedCalendar();//                     break;                default:                    cal = new calWcapCalendar(                        null /* calId: null indicates default calendar */,                        new calWcapSession() );                    cal.session.defaultCalendar = cal;                    break;                }                return cal.QueryInterface( iid );            }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c15df7d4539313b0292af0f9cc431bfe22d7f922/calWcapCalendarModule.js/buggy/calendar/providers/wcap/calWcapCalendarModule.js