rem: repositionDialog(); 
context: function restoreDefaultSet(){  // Save disabled/command states, because we're  // going to recreate the wrappers and lose this  var savedAttributes = saveItemAttributes(["itemdisabled", "itemcommand"]);  // Restore the defaultset for fixed toolbars.  var toolbar = gToolbox.firstChild;  while (toolbar) {    if (isCustomizableToolbar(toolbar)) {      if (!toolbar.hasAttribute("customindex")) {        var defaultSet = toolbar.getAttribute("defaultset");        if (defaultSet)          toolbar.currentSet = defaultSet;      }    }    toolbar = toolbar.nextSibling;  }  // Restore the default icon size (large) and mode (icons only).  updateIconSize(false);  document.getElementById("smallicons").checked = false;  updateToolbarMode("icons");  document.getElementById("modelist").value = "icons";    // Remove all of the customized toolbars.  var child = gToolbox.lastChild;  while (child) {    if (child.hasAttribute("customindex")) {      var thisChild = child;      child = child.previousSibling;      gToolbox.removeChild(thisChild);    } else {      child = child.previousSibling;    }  }    // Now rebuild the palette.  buildPalette();  // Now re-wrap the items on the toolbar.  wrapToolbarItems();  // Restore the disabled and command states  restoreItemAttributes(["itemdisabled", "itemcommand"], savedAttributes);  repositionDialog();  gToolboxChanged = true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a32f4e2afd6a61fb4805073d7ead7ee533f20459/customizeToolbar.js/clean/toolkit/content/customizeToolbar.js