rem: if (!iid.equals( Components.interfaces.nsIFactory )) throw Components.results.NS_ERROR_NOT_IMPLEMENTED; 
context:     getClassObject:    function( compMgr, cid, iid )    {        if (!this.m_scriptsLoaded) {            // loading extra scripts from ../js:            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);            var baseDir = __LOCATION__.parent.parent;            baseDir.append("js");            for each ( var script in scripts ) {                var scriptFile = baseDir.clone();                scriptFile.append(script);                scriptLoader.loadSubScript(                    ioService.newFileURI(scriptFile).spec, null );            }            initWcapProvider();            this.m_scriptsLoaded = true;        }                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 { // nsIFactory:            lockFactory: function( lock ) {},            createInstance: function( outer, iid ) {                if (outer != null)                    throw Components.results.NS_ERROR_NO_AGGREGATION;                var session = new calWcapSession();                var cal = createWcapCalendar(                    null /* calId: null indicates default calendar */,                    session );                session.defaultCalendar = cal;                return cal.QueryInterface( iid );            }        };    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/081bcea0fb84fed14473c061c9511741f7aa05f6/calWcapCalendarModule.js/clean/calendar/providers/wcap/calWcapCalendarModule.js