add: var retval = false;  
context: calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){   var Listener =   {      onStreamComplete: function(loader, ctxt, status, resultLength, result)      {         window.setCursor( "default" );                  //check to make sure its actually a calendar file, if not return.         if( result.indexOf( "BEGIN:VCALENDAR" ) == -1 )         {            alert( "This doesn't appear to be a valid file. Here's what I got back from\n"+Channel.URI.spec+":\nResult:"+result );            return false;         }         //if we have only one event, open the event dialog.         var BeginEventText = "BEGIN:VEVENT";         var firstMatchLocation = result.indexOf( BeginEventText );         if( firstMatchLocation == -1 )         {            alert( "There are no events in this file. Here's what I got from\n"+Channel.URI.spec+"\nResult: "+result );            return false;         }         else         {            onResponse( result );         }         return true;      }   }      var myInstance = Components.classes["@mozilla.org/network/stream-loader;1"].createInstance(Components.interfaces.nsIStreamLoader);   dump( "init channel, \nChannel is "+Channel+"\nURL is "+Channel.URI.spec+"\n" );   window.setCursor( "wait" );   myInstance.init( Channel, Listener, null );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ea65a170eb0cd98d517c037df7e3d7d3846e39be/calendarManager.js/buggy/calendar/resources/content/calendarManager.js