rem: dataObject.dataEls["browserUseSystemColors"].checked = document.getElementById("browserUseSystemColors").checked; dataObject.dataEls["browserUnderlineAnchors"].checked = document.getElementById("browserUnderlineAnchors").checked; dataObject.dataEls["useMyColors"].checked = document.getElementById("useMyColors").checked; dataObject.dataEls["useMyFonts"].checked = document.getElementById("useMyFonts").checked; 
add: var items = ["foregroundText", "background", "unvisitedLinks", "visitedLinks", "browserUseSystemColors", "browserUnderlineAnchors", "useMyColors", "useMyFonts"]; for (i = 0; i < items.length; ++i) dataObject.dataEls[items[i]] = new Object; dataObject.dataEls["foregroundText"].value = document.getElementById("foregroundtextmenu").color; dataObject.dataEls["background"].value = document.getElementById("backgroundmenu").color; dataObject.dataEls["unvisitedLinks"].value = document.getElementById("unvisitedlinkmenu").color; dataObject.dataEls["visitedLinks"].value = document.getElementById("visitedlinkmenu").color;  dataObject.dataEls["browserUseSystemColors"].checked = document.getElementById("browserUseSystemColors").checked; dataObject.dataEls["browserUnderlineAnchors"].checked = document.getElementById("browserUnderlineAnchors").checked; dataObject.dataEls["useMyColors"].checked = document.getElementById("useMyColors").checked; dataObject.dataEls["useMyFonts"].checked = document.getElementById("useMyFonts").checked; 
context: function GetFields()  {    var dataObject = { };        // store data for language independent widgets    var lists = ["selectLangs", "proportionalFont"];    for( var i = 0; i < lists.length; i++ )      {        if( !( "dataEls" in dataObject ) )          dataObject.dataEls = new Object;        dataObject.dataEls[ lists[i] ] = new Object;        dataObject.dataEls[ lists[i] ].value = document.getElementById( lists[i] ).value;      }   dataObject.defaultFont = document.getElementById( "proportionalFont" ).value;   dataObject.fontDPI = document.getElementById( "screenResolution" ).value;   dataObject.useMyFonts = document.getElementById( "useMyFonts" ).checked ? 1 : 0;      var items = ["foregroundText", "background", "unvisitedLinks", "visitedLinks", "browserUseSystemColors", "browserUnderlineAnchors", "useMyColors", "useMyFonts"];   for (i = 0; i < items.length; ++i)     dataObject.dataEls[items[i]] = new Object;   dataObject.dataEls["foregroundText"].value = document.getElementById("foregroundtextmenu").color;   dataObject.dataEls["background"].value = document.getElementById("backgroundmenu").color;   dataObject.dataEls["unvisitedLinks"].value = document.getElementById("unvisitedlinkmenu").color;   dataObject.dataEls["visitedLinks"].value = document.getElementById("visitedlinkmenu").color;   dataObject.dataEls["browserUseSystemColors"].checked = document.getElementById("browserUseSystemColors").checked;   dataObject.dataEls["browserUnderlineAnchors"].checked = document.getElementById("browserUnderlineAnchors").checked;   dataObject.dataEls["useMyColors"].checked = document.getElementById("useMyColors").checked;   dataObject.dataEls["useMyFonts"].checked = document.getElementById("useMyFonts").checked;    // save current state for language dependent fields and store    saveState();    dataObject.languageData = languageData;    return dataObject;  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2a34aa6a5de648793f502f11470dc607ba178964/pref-fonts.js/buggy/browser/components/prefwindow/content/pref-fonts.js