rem: event.title.toLowerCase().indexOf(searchText) != -1 ) 
add: event.title.toLowerCase().indexOf(searchText) != -1 ) { 
context: function refreshEventTreeInternal(eventArray){   var searchText = document.getElementById( "unifinder-search-field" ).value;   // XXX match for strings with only whitespace. Skip those too   if (searchText.length) {       gEventArray = new Array();       var fieldsToSearch = ["DESCRIPTION", "LOCATION", "CATEGORIES", "URL"];       for (var j in eventArray) {           var event = eventArray[j];           if (event.title &&                event.title.toLowerCase().indexOf(searchText) != -1 )               gEventArray.push(event);           for (var k in fieldsToSearch) {               var val = event.getProperty(fieldsToSearch[k]);               if (val && val.toLowerCase().indexOf(searchText) != -1 )                   gEventArray.push(event);           }       }   } else {       gEventArray = eventArray;   }   treeView.rowCount = gEventArray.length;         var ArrayOfTreeCols = document.getElementById( UnifinderTreeName ).getElementsByTagName( "treecol" );   for( var i = 0; i < ArrayOfTreeCols.length; i++ )   {      if( ArrayOfTreeCols[i].getAttribute( "sortActive" ) == "true" )      {         treeView.selectedColumn = ArrayOfTreeCols[i].getAttribute( "id" );         treeView.sortDirection = ArrayOfTreeCols[i].getAttribute("sortDirection");         treeView.sortStartedTime = new Date().getTime(); //for null/0 dates         gEventArray.sort(compareEvents);         break;      }   }   document.getElementById( UnifinderTreeName ).view = treeView;   document.getElementById( UnifinderTreeName ).eventView = new calendarEventView( eventArray );   //select selected events in the tree.   selectSelectedEventsInTree( false );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8768d061269185efaca7978c9699eecfbe89c7c2/unifinder.js/buggy/calendar/resources/content/unifinder.js