this.parseProperties = function(fragment){ var properties = {}; for(var item in fragment){   if((fragment[item] == fragment["tagName"])||(fragment[item] == fragment.nodeRef)){  }else{ if((fragment[item]["tagName"])&& (dojo.widget.tags[fragment[item].tagName.toLowerCase()])){     }else if((fragment[item][0])&&(fragment[item][0].value!="")&&(fragment[item][0].value!=null)){ try{  if(item.toLowerCase() == "dataprovider") { var _this = this; this.getDataProvider(_this, fragment[item][0].value); properties.dataProvider = this.dataProvider; } properties[item] = fragment[item][0].value; var nestedProperties = this.parseProperties(fragment[item]);  for(var property in nestedProperties){ properties[property] = nestedProperties[property]; } }catch(e){ dojo.debug(e); } } switch(item.toLowerCase()){ case "checked": case "disabled": if (typeof properties[item] != "boolean"){ properties[item] = true; } break; } } } return properties; } 
this.parseProperties=function(_96d){ var _96e={}; for(var item in _96d){ if((_96d[item]==_96d["tagName"])||(_96d[item]==_96d.nodeRef)){ }else{ if((_96d[item]["tagName"])&&(dojo.widget.tags[_96d[item].tagName.toLowerCase()])){ }else{ if((_96d[item][0])&&(_96d[item][0].value!="")&&(_96d[item][0].value!=null)){ try{ if(item.toLowerCase()=="dataprovider"){ var _970=this; this.getDataProvider(_970,_96d[item][0].value); _96e.dataProvider=this.dataProvider; } _96e[item]=_96d[item][0].value; var _971=this.parseProperties(_96d[item]); for(var _972 in _971){ _96e[_972]=_971[_972]; } } catch(e){ dojo.debug(e); } } } switch(item.toLowerCase()){ case "checked": case "disabled": if(typeof _96e[item]!="boolean"){ _96e[item]=true; } break; } } } return _96e; }; 
  this.parseProperties = function(fragment){    var properties = {};    for(var item in fragment){      // FIXME: need to check for undefined?      // case: its a tagName or nodeRef      if((fragment[item] == fragment["tagName"])||(fragment[item] == fragment.nodeRef)){        // do nothing      }else{        if((fragment[item]["tagName"])&&          (dojo.widget.tags[fragment[item].tagName.toLowerCase()])){          // TODO: it isn't a property or property set, it's a fragment,           // so do something else          // FIXME: needs to be a better/stricter check          // TODO: handle xlink:href for external property sets        }else if((fragment[item][0])&&(fragment[item][0].value!="")&&(fragment[item][0].value!=null)){          try{            // FIXME: need to allow more than one provider            if(item.toLowerCase() == "dataprovider") {              var _this = this;              this.getDataProvider(_this, fragment[item][0].value);              properties.dataProvider = this.dataProvider;            }            properties[item] = fragment[item][0].value;            var nestedProperties = this.parseProperties(fragment[item]);            // FIXME: this kind of copying is expensive and inefficient!            for(var property in nestedProperties){              properties[property] = nestedProperties[property];            }          }catch(e){ dojo.debug(e); }        }        switch(item.toLowerCase()){        case "checked":        case "disabled":          if (typeof properties[item] != "boolean"){             properties[item] = true;          }        break;        }      }     }    return properties;  }
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