rem: if (! iid.equals( Components.interfaces.nsIFactory )) 
add: if (!iid.equals( Components.interfaces.nsIFactory )) 
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) {                case "memory":                case "storage":                    cal = new calWcapCachedCalendar();                    break;                default:                    cal = new calWcapCalendar();                    break;                }                return cal.QueryInterface( iid );            }        };    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/318a30b964defb311d9cf0464a3354a583a7e8f0/calWcapCalendarModule.js/clean/calendar/providers/wcap/calWcapCalendarModule.js