rem: var iCalLibComponent = Components.classes["@mozilla.org/ical-container;1"].createInstance(); 
add: var iCalLibComponent = Components.classes["@mozilla.org/ical-container;1"].getService(); 
context: function CalendarEventDataSource( ){   try {       var iCalLibComponent = Components.classes["@mozilla.org/ical-container;1"].createInstance();   } catch ( e ) {       alert(            "The calendar cannot run due to the following error:\n"+           "The ICAL Component is not registered properly. Please follow the instructions given at:\n"+          "http://bugzilla.mozilla.org/attachment.cgi?id=122860&action=view\n"+          "If these instructions don't solve the problem, please add yourself to the cc list of\n"+          "bug 134432 at http://bugzilla.mozilla.org/show_bug.cgi?id=134432.\n"+          "and give more feedback on your platform, Mozilla version, calendar install type:\n"+          "(build or xpi), any errors you see on the console that you think is related and any\n"+          " other problems you come across when following the above insructions.\n\n"+e );          window.close();   }            this.gICalLib = iCalLibComponent.QueryInterface(Components.interfaces.oeIICalContainer);        this.currentEvents = new Array();      this.prepareAlarms( );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8b6757ec5864906a6eb1cb414ec6ce81b73c0684/calendarEvent.js/buggy/calendar/resources/content/calendarEvent.js