rem: var elementsToRemove = document.getElementsByAttribute( "taskitem", "true" );   for( var i = 0; i < elementsToRemove.length; i++ ) { elementsToRemove[i].parentNode.removeChild( elementsToRemove[i] ); }   for( var index = 0; index < eventArray.length; ++index ) { var calendarToDo = eventArray[ index ];    var treeItem = document.createElement( "treeitem" );  setUnifinderToDoTreeItem( treeItem, calendarToDo );  tree.getElementsByTagName( "treechildren" )[0]. appendChild( treeItem ); } 
add: document.getElementById( ToDoUnifinderTreeName ).taskView = new calendarTaskView( gTaskArray ); 
context: function refreshToDoTree( eventArray ){   if( eventArray === false )      eventArray = getTaskTable();   // get the old tree children item and remove it      var tree = document.getElementById( ToDoUnifinderTreeName );   var elementsToRemove = document.getElementsByAttribute( "taskitem", "true" );         for( var i = 0; i < elementsToRemove.length; i++ )   {      elementsToRemove[i].parentNode.removeChild( elementsToRemove[i] );   }   // add: tree item, row, cell, box and text items for every event   for( var index = 0; index < eventArray.length; ++index )   {      var calendarToDo = eventArray[ index ];            // make the items            var treeItem = document.createElement( "treeitem" );            setUnifinderToDoTreeItem( treeItem, calendarToDo );      tree.getElementsByTagName( "treechildren" )[0]. appendChild( treeItem );   }  }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/174c45d2ac95c63791cbc765ed121b271d9a042c/unifinderToDo.js/buggy/calendar/resources/content/unifinderToDo.js