rem:  SearchTree.treeBoxObject.selection.selectEventsSuppressed = true; 
context: function selectSelectedEventsInTree( EventsToSelect ){   if( EventsToSelect === false )      EventsToSelect = gCalendarWindow.EventSelection.selectedEvents;   //dump( "\nCALENDAR unifinder.js->on selection changed" );   var SearchTree = document.getElementById( UnifinderTreeName );         /* The following is a brutal hack, caused by    http://lxr.mozilla.org/mozilla1.0/source/layout/xul/base/src/tree/src/nsTreeSelection.cpp#555   and described in bug 168211   http://bugzilla.mozilla.org/show_bug.cgi?id=168211   Do NOT remove anything in the next 3 lines, or the selection in the tree will not work.   */   SearchTree.treeBoxObject.selection.selectEventsSuppressed = true;   SearchTree.onselect = null;   SearchTree.removeEventListener( "select", unifinderOnSelect, true );      if( EventsToSelect.length == 1 )   {      var RowToScrollTo = SearchTree.eventView.getRowOfCalendarEvent( EventsToSelect[0] );               if( RowToScrollTo != "null" )      {         SearchTree.treeBoxObject.selection.clearSelection( );            SearchTree.treeBoxObject.ensureRowIsVisible( RowToScrollTo );         SearchTree.treeBoxObject.selection.timedSelect( RowToScrollTo, 1 );      }      else      {         SearchTree.treeBoxObject.selection.clearSelection( );      }   }   else if( EventsToSelect.length > 1 )   {      /* selecting all events is taken care of in the selectAllEvents in calendar.js       ** Other than that, there's no other way to get in here. */      if( gSelectAll === true )      {         SearchTree.treeBoxObject.selection.selectAll( );                  gSelectAll = false;      }      }   else   {      dump( "\n--->>>>unifinder.js selection callback :: Clear selection" );      SearchTree.treeBoxObject.selection.clearSelection( );   }      /* This needs to be in a setTimeout */   setTimeout( "resetAllowSelection()", 0 );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/46f75395af262b54ef82bb2c82f23a9972b4d214/unifinder.js/clean/calendar/resources/content/unifinder.js