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:     getClassObject:    function( compMgr, cid, iid )    {        if (!this.m_scriptsLoaded) {            this.m_scriptsLoaded = true;            // load scripts:            const scripts = [ "calWcapUtils.js", "calWcapErrors.js",                              "calWcapRequest.js", "calWcapSession.js",                              "calWcapCalendar.js", "calWcapCalendarItems.js",                              "calWcapCachedCalendar.js" ];            var scriptLoader =                Components.classes["@mozilla.org/moz/jssubscript-loader;1"]                .createInstance(Components.interfaces.mozIJSSubScriptLoader);            var ioService =                Components.classes["@mozilla.org/network/io-service;1"]                .getService(Components.interfaces.nsIIOService);            for each ( var script in scripts ) {                var scriptFile = __LOCATION__.parent.clone();                scriptFile.append(script);                scriptLoader.loadSubScript(                    ioService.newFileURI(scriptFile).spec, null );            }            init(); // init first time        }                if (!cid.equals( calWcapCalendar.prototype.classID ))            throw Components.results.NS_ERROR_NO_INTERFACE;        if (!iid.equals( Components.interfaces.nsIFactory ))            throw Components.results.NS_ERROR_NOT_IMPLEMENTED;                return {            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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c15df7d4539313b0292af0f9cc431bfe22d7f922/calWcapCalendarModule.js/clean/calendar/providers/wcap/calWcapCalendarModule.js