rem: if ( searchText == '' ) 
add: if ( searchText.length <= 0 ) 
context: function doSearch( ){   var eventTable = new Array();   var searchText = document.getElementById( "unifinder-search-field" ).value;      if ( searchText == '' )    {      eventTable = getEventTable();   }   else if ( searchText == " " )    {      searchText = "";      document.getElementById( "unifinder-search-field" ).value = '';      return;   }   else   {      var FieldsToSearch = new Array( "title", "description", "location", "categories" );      eventTable = gEventSource.search( searchText, FieldsToSearch );   }      if( document.getElementById( "erase_command" ) )   {      if( searchText.length <= 0 )         document.getElementById( "erase_command" ).setAttribute( "disabled", "true" );      else         document.getElementById( "erase_command" ).removeAttribute( "disabled" );   }   refreshEventTree( eventTable );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b94e5a082c63475c343bf6529fcc40597a88b4bc/unifinder.js/buggy/calendar/resources/content/unifinder.js