rem: if (mode == "text") 
add: if (gPreviousMode == "text") 
context: function initDialog(){  document.getElementById("main-box").collapsed = false;    var mode = gToolbox.getAttribute("mode");  document.getElementById("modelist").value = mode;  var iconSize = gToolbox.getAttribute("iconsize");  var smallIconsCheckbox = document.getElementById("smallicons");  if (mode == "text")    smallIconsCheckbox.disabled = true;  else    smallIconsCheckbox.checked = iconSize == "small";   // Build up the palette of other items.  buildPalette();  // Wrap all the items on the toolbar in toolbarpaletteitems.  wrapToolbarItems();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d311fe8c6f68546bc14903ce4c8aef7fff7b16a2/customizeToolbar.js/buggy/mail/base/content/customizeToolbar.js