add: unwrapToolbarItems(); 
context: function onCancel(){  // restore the saved toolbarset for each customizeable toolbar  // Restore the defaultset for fixed toolbars.  var toolbar = gToolbox.firstChild;  while (toolbar) {    if (isCustomizableToolbar(toolbar)) {      if (!toolbar.hasAttribute("customindex")) {        var previousset = toolbar.getAttribute("previousset");        if (previousset)        {          toolbar.currentSet = previousset;        }      }    }    toolbar = toolbar.nextSibling;  }  // Now rebuild the palette.  buildPalette();  // Now re-wrap the items on the toolbar.  wrapToolbarItems();  repositionDialog();  gToolboxChanged = true;  return onAccept(); // we restored the default toolbar, act like a normal accept event now}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7aaeee0f7060da365f0961c87544cf3eb55a7827/customizeToolbar.js/buggy/mail/base/content/customizeToolbar.js