dojo.string.escape = function(/*string*/type, /*string*/str){       var args = dojo.lang.toArray(arguments, 1); switch(type.toLowerCase()){ case "xml": case "html": case "xhtml": return dojo.string.escapeXml.apply(this, args); case "sql": return dojo.string.escapeSql.apply(this, args); case "regexp": case "regex": return dojo.string.escapeRegExp.apply(this, args); case "javascript": case "jscript": case "js": return dojo.string.escapeJavaScript.apply(this, args); case "ascii":  return dojo.string.encodeAscii.apply(this, args); default: return str; } 
dojo.string.escape=function(type,str){ var args=dojo.lang.toArray(arguments,1); switch(type.toLowerCase()){ case "xml": case "html": case "xhtml": return dojo.string.escapeXml.apply(this,args); case "sql": return dojo.string.escapeSql.apply(this,args); case "regexp": case "regex": return dojo.string.escapeRegExp.apply(this,args); case "javascript": case "jscript": case "js": return dojo.string.escapeJavaScript.apply(this,args); case "ascii": return dojo.string.encodeAscii.apply(this,args); default: return str; 
dojo.string.escape = function(/*string*/type, /*string*/str){// summary://  Adds escape sequences for special characters according to the convention of 'type'//// type: one of xml|html|xhtml|sql|regexp|regex|javascript|jscript|js|ascii// str: the string to be escaped  var args = dojo.lang.toArray(arguments, 1);  switch(type.toLowerCase()){    case "xml":    case "html":    case "xhtml":      return dojo.string.escapeXml.apply(this, args); // string    case "sql":      return dojo.string.escapeSql.apply(this, args); // string    case "regexp":    case "regex":      return dojo.string.escapeRegExp.apply(this, args); // string    case "javascript":    case "jscript":    case "js":      return dojo.string.escapeJavaScript.apply(this, args); // string    case "ascii":      // so it's encode, but it seems useful      return dojo.string.encodeAscii.apply(this, args); // string    default:      return str; // string  }}
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