context: function syncPrefLoadDOM(elementList) {	for(var strCurKey in elementList) {		var elementAndPref=document.getElementById(elementList[strCurKey]);		var prefName=elementAndPref.getAttribute("preference");		var prefUIType=elementAndPref.getAttribute("prefuitype");		var transValidator=elementAndPref.getAttribute("onsyncfrompreference");		var onReadPref=elementAndPref.getAttribute("onreadpref");		var prefDOMValue=null;		if (document.getElementById(prefName).getAttribute("preftype")=="file") {		    try {		            prefDOMValue = gPref.getComplexValue(prefName, Components.interfaces.nsILocalFile);                } catch (ex) { prefDOMValue=null; } 		    document.getElementById(prefName).value=prefDOMValue;			if(transValidator) {				preGETValue=eval(transValidator);				if(prefUIType=="string" || prefUIType=="int") elementAndPref.value=preGETValue;				if(prefUIType=="bool") elementAndPref.checked=preGETValue;			} else {				elementAndPref.value=prefDOMValue;			}				    			if(onReadPref) {				eval(onReadPref);			}		} 		if (document.getElementById(prefName).getAttribute("preftype")=="string") {		    try {		 	   prefDOMValue = gPref.getCharPref(prefName);                } catch (ex) { prefDOMValue=null; } 		    document.getElementById(prefName).value=prefDOMValue;			if(transValidator) {				preGETValue=eval(transValidator);				if(prefUIType=="string" || prefUIType=="int") elementAndPref.value=preGETValue;				if(prefUIType=="bool") elementAndPref.checked=preGETValue;			} else {				elementAndPref.value=prefDOMValue;			}				    		} 		if (document.getElementById(prefName).getAttribute("preftype")=="int") {		    try {			    prefDOMValue = gPref.getIntPref(prefName);                } catch (ex) { prefDOMValue=null; } 		    document.getElementById(prefName).value=prefDOMValue;			if(transValidator) {				preGETValue=eval(transValidator);				if(prefUIType=="string" || prefUIType=="int") elementAndPref.value=preGETValue;				if(prefUIType=="bool") elementAndPref.checked=preGETValue;			} else {				if(prefDOMValue==1) { 				   elementAndPref.checked=true;				} else {				   elementAndPref.checked=false;				} 				elementAndPref.value=prefDOMValue ;			} 	 	}		if (document.getElementById(prefName).getAttribute("preftype")=="bool") {		    try { 		 	   prefDOMValue = gPref.getBoolPref(prefName);                } catch (ex) { prefDOMValue=null; } 					    document.getElementById(prefName).value=prefDOMValue;			if(transValidator) {				preGETValue=eval(transValidator);				if(prefUIType=="string" || prefUIType=="int") elementAndPref.value=preGETValue;				if(prefUIType=="bool") elementAndPref.checked=preGETValue;			} else {				if(prefDOMValue==true) { 				   elementAndPref.checked=true;				} else {				   elementAndPref.checked=false;				} 				elementAndPref.value=prefDOMValue;			}			}			}	UIdependencyCheck();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0b29ec409f0162220ff17fc579ea8845f6f2d242/preferences.js/buggy/minimo/chrome/content/preferences/preferences.js