rem: var treeNode = document.getElementById("searchengines"); var numChildren = treeNode.childNodes.length; var treeChildrenNode = null;  for (var x = 0; x<numChildren; x++) { if (treeNode.childNodes[x].tagName == "treechildren") { treeChildrenNode = treeNode.childNodes[x]; break; } } if( !treeChildrenNode )	return(-1); return(treeChildrenNode.childNodes.length); 
add: var treeChildrenNode = document.getElementById("engineKids"); var numChildren = treeChildrenNode.childNodes.length; debug("getNumEngines:  numChildren = " + numChildren + "\n"); return(numChildren); 
context: function getNumEngines(){ 	var treeNode = document.getElementById("searchengines");	var numChildren = treeNode.childNodes.length;	var treeChildrenNode = null;	for (var x = 0; x<numChildren; x++) 	{		if (treeNode.childNodes[x].tagName == "treechildren")		{			treeChildrenNode = treeNode.childNodes[x]; 			break;		}	}	if( !treeChildrenNode )	return(-1);	return(treeChildrenNode.childNodes.length);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f35042debfeb638e916315465f0e57a709bb3c36/search-panel.js/clean/xpfe/components/search/resources/search-panel.js