rem:  var treerow = document.getElementById("headRow"); var id = column + "Header";  if (treerow) {  var treecell = treerow.getElementsByTagName("treecell"); if (treecell) {  var node_count = treecell.length; for (var i=0; i < node_count; i++) {  if (id == treecell[i].getAttribute("id")) {   treecell[i].setAttribute('sortDirection',sortDirection); } else {  treecell[i].removeAttribute('sortDirection'); } } } } 
add:  var treerow = document.getElementById("headRow"); var id = column + "Header";  if (treerow) {  var treecell = treerow.getElementsByTagName("treecell"); if (treecell) {  var node_count = treecell.length; for (var i=0; i < node_count; i++) {  if (id == treecell[i].getAttribute("id")) {   treecell[i].setAttribute("sortDirection", sortDirection); } else {  treecell[i].removeAttribute("sortDirection"); } } } } 
context: function UpdateSortIndicator(column,sortDirection){	// Find the <treerow> element	var treerow = document.getElementById("headRow");	var id = column + "Header";		if (treerow)	{		// Grab all of the <treecell> elements		var treecell = treerow.getElementsByTagName("treecell");		if (treecell)		{			// Loop through each treecell...			var node_count = treecell.length;			for (var i=0; i < node_count; i++)			{				// Is this the requested column ?				if (id == treecell[i].getAttribute("id"))				{					// Set the sortDirection so the class (CSS) will add the					// appropriate icon to the header cell					treecell[i].setAttribute('sortDirection',sortDirection);				}				else				{					// This is not the sorted row					treecell[i].removeAttribute('sortDirection');				}			}		}	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0bae2ed72e9748283256fed72e6330994a6cb0fd/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js