rem: if ((elm.type != "checkbox" && elm.type != "radio") || (elm.type=="radio" && elm.checked)) { 
add: if ((elm.type != "select-multiple" && elm.type != "checkbox" && elm.type != "radio") || (elm.type=="radio" && elm.checked)) { 
context: 		getValues: function() {			this._createFormElements();			var obj = { };			for(var i=0,len=this.formElements.length; i<len; i++) {				// FIXME: would be better to give it an attachPoint:				var elm = this.formElements[i];				var namePath = [];				if (elm.name == '') { continue;}				namePath=elm.name.split(".");				var myObj=obj;				var name=namePath[namePath.length-1];				for(var j=1,len2=namePath.length;j<len2;++j) {					var nameIndex = null;					var p=namePath[j - 1];					var nameA=p.split("[");					if (nameA.length > 1) {						if(typeof(myObj[nameA[0]]) == "undefined") {							myObj[nameA[0]]=[ ];						} // if						nameIndex=parseInt(nameA[1]);						if(typeof(myObj[nameA[0]][nameIndex]) == "undefined") {							myObj[nameA[0]][nameIndex]={};						}					} else if(typeof(myObj[nameA[0]]) == "undefined") {						myObj[nameA[0]]={}					} // if					if (nameA.length == 1) {						myObj=myObj[nameA[0]];					} else {						myObj=myObj[nameA[0]][nameIndex];					} // if				} // for				if ((elm.type != "checkbox" && elm.type != "radio") || (elm.type=="radio" && elm.checked)) {					if(name == name.split("[")[0]) {						myObj[name]=elm.value;					} else {						// can not set value when there is no name					}				} else if (elm.type == "checkbox" && elm.checked) {					if(typeof(myObj[name]) == 'undefined') {						myObj[name]=[ ];					}					myObj[name].push(elm.value);				} // if				name=undefined;			} // for		return obj;	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Form.js/clean/www/resources/dojo-ajax/src/widget/Form.js