   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/65ae7e8768a77997b7894e274bc242069a1cb027/struts_dojo.js.uncompressed.js/clean/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js