if((str.length-end.length)<0){ return false; } return str.lastIndexOf(end)==str.length-end.length; }; 
dojo.string.endsWith = function(/*string*/str, /*string*/end, /*boolean*/ignoreCase){// summary://  Returns true if 'str' ends with 'end'  if(ignoreCase){    str = str.toLowerCase();    end = end.toLowerCase();  }  if((str.length - end.length) < 0){    return false; // boolean  }  return str.lastIndexOf(end) == str.length - end.length; // boolean}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js