rem: this.fauxPopButtonDiv.appendChild(panel); 
add: var panel = dojo.widget.createWidget( 'ButtonPanel', { btnsLeft: this.btnsLeft, btnsCenter: this.btnsCenter, btnsRight: this.btnsRight }, this.fauxPopButtonDiv, 'last'); 
context:             this.show = function (msg, l, c, r) {                // Accommodate either original multiple param or                // object param input                if (typeof arguments[0] == 'object') {                    var o = arguments[0];                    if (o.msg) { msg = o.msg; }                    if (o.btnsLeft) { l = o.btnsLeft; }                    if (o.btnsCenter) { l = o.btnsCenter; }                    if (o.btnsRight) { l = o.btnsRight; }                }                var bDiv = this.fauxPopButtonDiv;                this.msg = msg || this.msg;                this.btnsLeft = l || this.btnsLeft;                this.btnsCenter = c || this.btnsCenter;                this.btnsRight = r || this.btnsRight;                this.width = this.width || DIALOG_BOX_WIDTH;                this.height = this.height || DIALOG_BOX_HEIGHT;                this.setWidth(this.width);                this.setHeight(this.height);                if (typeof this.msg == 'string') {                    this.fauxPopTextDiv.innerHTML = this.msg;                }                else {                    while(this.fauxPopTextDiv.firstChild) {                        this.fauxPopTextDiv.removeChild(this.fauxPopTextDiv.firstChild);                        this.fauxPopTextDiv.appendChild(msg);                    }                }                var panel = new ButtonPanel(this.btnsLeft, this.btnsCenter, this.btnsRight);                if (bDiv.firstChild) {                    bDiv.removeChild(bDiv.firstChild);                };                this.fauxPopButtonDiv.appendChild(panel);                this.center();                this.domNode.style.display = 'block';                // Call the original Dojo show method                dojo.lang.hitch(this, this.showOrig);                this.isDisplayed = true;            };
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/fe8f6b4f909b3d64d27c61666104f08953da9c27/ModalDialog.js/buggy/src/webapp/js/cosmo/ui/widget/ModalDialog.js