rem: cleanUpItemForAdding(newItem); 
context: function addItemToToolbar(newItem, newToolbar){  cleanUpItemForAdding(newItem);  var enclosure = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",                                       "toolbarpaletteitem");  if (newItem.getAttribute("flex"))    enclosure.setAttribute("flex", newItem.getAttribute("flex"));  // Set a draggesture handler to allow drag-rearrange within the clone toolbar.  enclosure.setAttribute("ondraggesture", "gDraggingFromPalette = false; nsDragAndDrop.startDrag(event, dragObserver)");  enclosure.appendChild(newItem);  newToolbar.appendChild(enclosure);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/cfb4134b2c30b4ef145a937bd6b3f6506919539e/customizeToolbar.js/buggy/browser/base/content/customizeToolbar.js