rem: var allPrefElements = [ { prefstring:"hostname", id:"smtp.hostname"}, { prefstring:"description", id:"smtp.description"}, { prefstring:"port", id:"smtp.port"}, { prefstring:"use_username", id:"smtp.useUsername"}, { prefstring:"try_ssl", id:"smtp.trySSL"} ]; 
add: var allPrefElements = { hostname:     gSmtpHostname, description:  gSmtpDescription, port:         gSmtpPort, use_username: gSmtpUseUsername, try_ssl:      gSmtpTrySSL }; 
context: function onLockPreference(){    var defaultSmtpServerKey = gPrefBranch.getCharPref("mail.smtp.defaultserver");    var finalPrefString = "mail.smtpserver." + defaultSmtpServerKey + ".";     var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);    var allPrefElements = [      { prefstring:"hostname", id:"smtp.hostname"},      { prefstring:"description", id:"smtp.description"},      { prefstring:"port", id:"smtp.port"},      { prefstring:"use_username", id:"smtp.useUsername"},      { prefstring:"try_ssl", id:"smtp.trySSL"}    ];    gSmtpPrefBranch = prefService.getBranch(finalPrefString);    disableIfLocked( allPrefElements );} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/330c8dec6496a02c414236bb3fe78d762ab52b11/smtpEditOverlay.js/clean/mailnews/base/prefs/resources/content/smtpEditOverlay.js