add:  if (this.btnPanel) { this.btnPanel.destroyButtons(); if (bDiv.firstChild) { bDiv.removeChild(bDiv.firstChild); } this.btnPanel.destroy(); }  
context:         setButtons: function (l, c, r) {            var bDiv = this.buttonPanelNode;            // Reset buttons if needed            this.btnsLeft = l || this.btnsLeft;            this.btnsCenter = c || this.btnsCenter;            this.btnsRight = r || this.btnsRight;                        // Create and append the panel            // Append the panel as part of instantiation -- if done without            // a parent element to append to, the widget parser uses document.body,            // which causes the doc to reflow -- and            // scrolling canvas scrollOffset gets reset            this.btnPanel = dojo.widget.createWidget(                'cosmo:ButtonPanel', { btnsLeft: this.btnsLeft, btnsCenter: this.btnsCenter,                btnsRight: this.btnsRight }, bDiv, 'last');            return true;        },
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/5cbd7f779c65adab1641e6f569eda2a9a48e7f70/ModalDialog.js/clean/src/webapp/js/cosmo/ui/widget/ModalDialog.js