rem: dojo.dom.getAncestors = function(/* Node */node, /* function? */filterFunction, /* boolean? */returnFirstHit) {   
add: dojo.dom.getAncestors = function(/*Node*/node, /*function?*/filterFunction, /*boolean?*/returnFirstHit){    
context: 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}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js