rem: prefsTabOpen = true; document.getElementById('qa-preferences-litmus-username').value = qaPref.litmus.getUsername() || ''; document.getElementById('qa-preferences-litmus-password').value = qaPref.litmus.getPassword() || '';   var prefs = qaPref.getPref(qaPref.prefBase+'.notificationSettings', 'char'); prefs = prefs.split(","); var notify = $('qa-prefs-notify').childNodes; var prefCounter = 0; for (var i=0; i<notify.length; i++) { if (notify[i].setChecked != null && notify[i].checked != null) { if (prefs[prefCounter] == "1") notify[i].checked = true; else notify[i].checked = false; prefCounter++; } } }, 
add: prefsTabOpen = true; document.getElementById('qa-preferences-litmus-username').value = qaPref.litmus.getUsername() || ''; document.getElementById('qa-preferences-litmus-password').value = qaPref.litmus.getPassword() || '';   var prefs = qaPref.getPref(qaPref.prefBase+'.notificationSettings', 'char'); prefs = prefs.split(","); var notify = $('qa-prefs-notify').childNodes; var prefCounter = 0; for (var i=0; i<notify.length; i++) { if (notify[i].setChecked != null && notify[i].checked != null) { if (prefs[prefCounter] == "1") notify[i].checked = true; else notify[i].checked = false; prefCounter++; } } }, 
context: 	loadPrefsWindow : function() {		prefsTabOpen = true;		document.getElementById('qa-preferences-litmus-username').value = 			qaPref.litmus.getUsername() || '';		document.getElementById('qa-preferences-litmus-password').value = 			qaPref.litmus.getPassword() || '';					// load notification settings:		var prefs = qaPref.getPref(qaPref.prefBase+'.notificationSettings', 'char');		prefs = prefs.split(",");		var notify = $('qa-prefs-notify').childNodes;		var prefCounter = 0;		for (var i=0; i<notify.length; i++) {			if (notify[i].setChecked != null && notify[i].checked != null) { // it's a checkbox				if (prefs[prefCounter] == "1") 					notify[i].checked = true;				else					notify[i].checked = false;				prefCounter++;			}		}	},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/838a3f38df6e9bd6fd899d9909b263e01aed1e26/settings.js/buggy/testing/extensions/community/chrome/content/settings.js