rem: var oldTreeItems = document.getElementsByAttribute( "name", "sample-todo-listitem" );  var oldTreeItem = oldTreeItems[0]; 
context: function refreshToDoTree( eventArray ){   // get the old tree children item and remove it      var oldTreeChildren = document.getElementById( ToDoUnifinderTreeName );   var elementsToRemove = document.getElementsByAttribute( "taskitem", "true" );      var oldSelectedIndex = oldTreeChildren.selectedIndex;      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 oldTreeItems = document.getElementsByAttribute( "name", "sample-todo-listitem" );      var oldTreeItem = oldTreeItems[0];            var treeItem = oldTreeItem.cloneNode( true );            setUnifinderToDoTreeItem( treeItem, calendarToDo );      oldTreeChildren.appendChild( treeItem );   }     oldTreeChildren.selectedIndex = oldSelectedIndex;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/766f6b5da18c8697a73c5e9a3b9483cf778d2777/unifinderToDo.js/clean/calendar/resources/content/unifinderToDo.js