rem: var SelectedItem = document.getElementById( "unifinder-categories-tree" ).selectedItems.item(0); 
add: var SelectedItem = document.getElementById( "unifinder-categories-tree" ).selectedItems[0]; 
context: function unifinderModifyCommand(){   var SelectedItem = document.getElementById( "unifinder-categories-tree" ).selectedItems.item(0);   if( SelectedItem )   {      if( SelectedItem.getAttribute( "container" ) == "true" )      {          launchEditCategoryDialog( SelectedItem.categoryobject );      }      else      {         if( gUnifinderSelection != null )         {            var calendarEvent = gICalLib.fetchEvent( gUnifinderSelection );                  if( calendarEvent != null )            {               editEvent( calendarEvent );            }           }      }   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2916e62d7bb7a5616da721a0909b35d27c946925/unifinder.js/clean/calendar/resources/content/unifinder/unifinder.js