rem: dump( "in unifinder onselect\n" );  
context: function unifinderOnSelect( event ){   dump( "in unifinder onselect\n" );   if( event.target.view.selection.getRangeCount() == 0 )       return;   var ArrayOfEvents = new Array( );      gCalendarEventTreeClicked = true;      var calendarEvent;   //get the selected events from the tree   var tree = document.getElementById( UnifinderTreeName );   var start = new Object();   var end = new Object();   var numRanges = tree.view.selection.getRangeCount();      for (var t=0; t<numRanges; t++){      tree.view.selection.getRangeAt(t,start,end);            for (var v=start.value; v<=end.value; v++){         try {            calendarEvent = tree.eventView.getCalendarEventAtRow( v );         }         catch( e )         {            dump( "e is "+e+"\n" );            return;         }         ArrayOfEvents.push( calendarEvent );      }   }      if( ArrayOfEvents.length == 1 )   {      /*start date is either the next or last occurence, or the start date of the event */      var eventStartDate = getCurrentNextOrPreviousRecurrence( calendarEvent );            /* you need this in case the current day is not visible. */      if( gCalendarWindow.currentView.getVisibleEvent( calendarEvent ) == false )         gCalendarWindow.currentView.goToDay( eventStartDate, true);   }      gCalendarWindow.EventSelection.setArrayToSelection( ArrayOfEvents );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/539566e0dd8ea3f0e9aa4b5715e80db80c88cffc/unifinder.js/clean/calendar/resources/content/unifinder.js