context: function doWizardExport(){   const UTF8 = "UTF-8";   var aDataStream;   var extension;   var charset;      var fileName = document.getElementById( "export-path-textbox" ).value;   if( fileName.indexOf( ".ics" ) == -1 )   {      aDataStream = eventArrayToICalString( calendarEventArray, true );      extension   = extensionCalendar;      charset = "UTF-8";   }   else if( fileName.indexOf( ".rtf" ) == -1 )   {      aDataStream = eventArrayToRTF( calendarEventArray );      extension   = extensionRtf;   }   else if( fileName.indexOf( ".htm" ) == -1 )   {      aDataStream = eventArrayToHTML( calendarEventArray );      extension   = ".htm";      charset = "UTF-8";   }   else if( fileName.indexOf( ".csv" ) == -1 )   {      aDataStream = eventArrayToCsv( calendarEventArray );      extension   = extensionCsv;      charset = "UTF-8";   }   else if( fileName.indexOf( ".xml" ) == -1 )   {      aDataStream = eventArrayToXCS( calendarEventArray );      extension   = extensionXcs;      charset = "UTF-8";   }   else if( fileName.indexOf( ".rdf" ) == -1 )   {      aDataStream = eventArrayToRdf( calendarEventArray );      extension   = extensionRdf;      charset = "UTF-8";   }   saveDataToFile( filePath, aDataStream, charset );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/wizard.js/clean/calendar/resources/content/wizard.js