rem: if( calendarServer.getAttribute( "http: calendarServer.getAttribute( "http: ) 
add: if( calendarServer.getAttribute( "http: 
context: function refreshRemoteCalendarAndRunFunction( calendarEvent, Server, functionToRun ){   var calendarServer = gCalendarWindow.calendarManager.getCalendarByName( Server )      if( calendarServer )   {      if( calendarServer.getAttribute( "http://home.netscape.com/NC-rdf#remote" ) == "true" &&          calendarServer.getAttribute( "http://home.netscape.com/NC-rdf#publishAutomatically" ) == "true"        )      {         var onResponseExtra = function( )         {            //add the event            eval( "gICalLib."+functionToRun+"( calendarEvent, Server )" );               gCalendarWindow.clearSelectedEvent( calendarEvent );                        //publish the changes back to the server            if( calendarServer.getAttribute( "http://home.netscape.com/NC-rdf#publishAutomatically" ) == "true" )               gCalendarWindow.calendarManager.publishCalendar( calendarServer );         }            //refresh the calendar file.         gCalendarWindow.calendarManager.retrieveAndSaveRemoteCalendar( calendarServer, onResponseExtra );      }      else      {         eval( "gICalLib."+functionToRun+"( calendarEvent, Server )" );            gCalendarWindow.clearSelectedEvent( calendarEvent );      }   }   else   {      eval( "gICalLib."+functionToRun+"( calendarEvent, Server )" );         gCalendarWindow.clearSelectedEvent( calendarEvent );   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ea6ea8560fbb9990893b6fcc38a572094636d72e/calendar.js/buggy/calendar/resources/content/calendar.js