rem: var titleText; if( calendarToDo.title == "" ) titleText = gCalendarBundle.getString( "eventUntitled" ); else titleText = calendarToDo.title; return( titleText ); 
add:  return calendarToDo.title || gCalendarBundle.getString( "eventUntitled" ); 
context:    getCellText : function(row,column)   {      calendarToDo = gTaskArray[row];      if( !calendarToDo )         return false;      // Moz1.8 trees require column.id, moz1.7 and earlier trees use column.      switch( typeof(column)=="object" ? column.id : column )      {         case "unifinder-todo-tree-col-completed":            return( "" );                  case "unifinder-todo-tree-col-priority":            return( "" );         case "unifinder-todo-tree-col-title":            var titleText;            if( calendarToDo.title == "" )               titleText = gCalendarBundle.getString( "eventUntitled" );            else                 titleText = calendarToDo.title;            return( titleText );         case "unifinder-todo-tree-col-startdate":            return( formatUnifinderToDoDateTime( new Date( calendarToDo.start.getTime() ) ) );         case "unifinder-todo-tree-col-duedate":            return( formatUnifinderToDoDateTime( new Date( calendarToDo.due.getTime() ) ) );         case "unifinder-todo-tree-col-completeddate":            return( formatUnifinderToDoDateTime( new Date( calendarToDo.completed.getTime() ) ) );         case "unifinder-todo-tree-col-percentcomplete":            return( calendarToDo.percent+"%" );         case "unifinder-todo-tree-col-categories":            return( calendarToDo.categories );         default:            return false;      }   }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2a5dc4d585eb41cc15c717ff539f85b328c99cd4/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js