obj.templateString = tstring; if(!avoidCache){ tmplts[wt]["string"] = tstring; } } if((!ts["string"])&&(!avoidCache)){ ts.string = obj.templateString; } 
obj.templateString = tstring; if(!avoidCache){ tmplts[wt]["string"] = tstring; } } if((!ts["string"])&&(!avoidCache)){ ts.string = obj.templateString; } 
dojo.widget.fillFromTemplateCache = function(obj, templatePath, templateString, avoidCache){  // summary:  //    static method to build from a template w/ or w/o a real widget in  //    place  // obj: DomWidget  //    an instance of dojo.widget.DomWidget to initialize the template for  // templatePath: String  //    the URL to get the template from. dojo.uri.Uri is often passed as well.  // templateString: String?  //    a string to use in lieu of fetching the template from a URL  // avoidCache: Boolean?  //    should the template system not use whatever is in the cache and  //    always use the passed templatePath or templateString?  // dojo.debug("avoidCache:", avoidCache);  var tpath = templatePath || obj.templatePath;  var tmplts = dojo.widget._templateCache;  if(!tpath && !obj["widgetType"]) { // don't have a real template here    do {      var dummyName = "__dummyTemplate__" + dojo.widget._templateCache.dummyCount++;    } while(tmplts[dummyName]);    obj.widgetType = dummyName;  }  var wt = tpath?tpath.toString():obj.widgetType;  var ts = tmplts[wt];  if(!ts){    tmplts[wt] = {"string": null, "node": null};    if(avoidCache){      ts = {};    }else{      ts = tmplts[wt];    }  }  if((!obj.templateString)&&(!avoidCache)){    obj.templateString = templateString || ts["string"];  }  if(obj.templateString){    obj.templateString = this._sanitizeTemplateString(obj.templateString);  }  if((!obj.templateNode)&&(!avoidCache)){    obj.templateNode = ts["node"];  }  if((!obj.templateNode)&&(!obj.templateString)&&(tpath)){    // fetch a text fragment and assign it to templateString    // NOTE: we rely on blocking IO here!    var tstring = this._sanitizeTemplateString(dojo.hostenv.getText(tpath));    obj.templateString = tstring;    if(!avoidCache){      tmplts[wt]["string"] = tstring;    }  }  if((!ts["string"])&&(!avoidCache)){    ts.string = obj.templateString;  }}
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