rem: var lists = ["selectLangs", "proportionalFont"]; for( var i = 0; i < lists.length; i++ ) { if( !( "dataEls" in dataObject ) ) dataObject.dataEls = []; dataObject.dataEls[ lists[i] ] = []; dataObject.dataEls[ lists[i] ].value = document.getElementById( lists[i] ).value; } 
add: if( !( "dataEls" in dataObject ) ) dataObject.dataEls = []; dataObject.dataEls[ "selectLangs" ] = []; dataObject.dataEls[ "selectLangs" ].value = document.getElementById( "selectLangs" ).value; 
context: function GetFields()  {    var dataObject = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-fonts.xul"];    // store data for language independent widgets    var lists = ["selectLangs", "proportionalFont"];    for( var i = 0; i < lists.length; i++ )      {        if( !( "dataEls" in dataObject ) )          dataObject.dataEls = [];        dataObject.dataEls[ lists[i] ] = [];        dataObject.dataEls[ lists[i] ].value = document.getElementById( lists[i] ).value;      }   dataObject.defaultFont = document.getElementById( "proportionalFont" ).value;   dataObject.fontDPI = document.getElementById( "screenResolution" ).value;   dataObject.useDocFonts = document.getElementById( "browserUseDocumentFonts" ).checked ? 1 : 0;    // save current state for language dependent fields and store    saveState();    dataObject.languageData = languageData;    return dataObject;  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f1635b58a41291db4392c731020e1816480a50a6/pref-fonts.js/buggy/mail/components/prefwindow/content/pref-fonts.js