   var ancestors = []; var isFunction = (filterFunction && (filterFunction instanceof Function || typeof filterFunction == "function")); while(node){ if(!isFunction || filterFunction(node)){ ancestors.push(node); } if(returnFirstHit && ancestors.length > 0){ return ancestors[0]; }  node = node.parentNode; } if(returnFirstHit){ return null; } return ancestors; 
   var ancestors = []; var isFunction = (filterFunction && (filterFunction instanceof Function || typeof filterFunction == "function")); while(node){ if(!isFunction || filterFunction(node)){ ancestors.push(node); } if(returnFirstHit && ancestors.length > 0){ return ancestors[0]; }  node = node.parentNode; } if(returnFirstHit){ return null; } return ancestors; 
dojo.dom.getAncestors = function(/*Node*/node, /*function?*/filterFunction, /*boolean?*/returnFirstHit){	//	summary:	//		returns all ancestors matching optional filterFunction; will return	//		only the first if returnFirstHit	var ancestors = [];	var isFunction = (filterFunction && (filterFunction instanceof Function || typeof filterFunction == "function"));	while(node){		if(!isFunction || filterFunction(node)){			ancestors.push(node);		}		if(returnFirstHit && ancestors.length > 0){ 			return ancestors[0]; 	//	Node		}				node = node.parentNode;	}	if(returnFirstHit){ return null; }	return ancestors;	//	array}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js