add: document.adoptNode(aPaletteItem); 
context: function wrapPaletteItem(aPaletteItem, aCurrentRow, aSpacer){  var wrapper = createWrapper(aPaletteItem.id);  wrapper.setAttribute("flex", 1);  wrapper.setAttribute("align", "center");  wrapper.setAttribute("pack", "center");  wrapper.setAttribute("minheight", "0");  wrapper.setAttribute("minwidth", "0");  wrapper.appendChild(aPaletteItem);    // XXX We need to call this AFTER the palette item has been appended  // to the wrapper or else we crash dropping certain buttons on the   // palette due to removal of the command and disabled attributes - JRH  cleanUpItemForPalette(aPaletteItem, wrapper);  if (aSpacer)    aCurrentRow.insertBefore(wrapper, aSpacer);  else    aCurrentRow.appendChild(wrapper);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/492098c0a384bb29675a579d78e35d4a3d805533/customizeToolbar.js/buggy/toolkit/content/customizeToolbar.js