rem:  if (!self.dialog) { self.dialog = dojo.widget.createWidget('ModalDialog', o, document.body, 'last'); }  else { for (var p in o) { self.dialog[p] = o[p]; } } self.dialog.show(); 
add: cosmo.app.modalDialog.show(o); 
context:     this.showForm = function () {        var o = {};        o.width = 540;        o.height = 480;        o.title = 'Create an Account';        o.prompt = _('Signup.Prompt.AllFieldsRequired');        o.content = getFormTable();        o.btnsLeft = [dojo.widget.createWidget("cosmo:Button",             { text:_('App.Button.Cancel'), width:74,             handleOnClick: function () { self.hide(); } })];        o.btnsRight = [dojo.widget.createWidget("cosmo:Button",             { text:_('App.Button.Submit'), width:74,            handleOnClick: function () { self.submitCreate(); } })];        // Create the modal dialog widget if needed        if (!self.dialog) {            self.dialog = dojo.widget.createWidget('ModalDialog', o,                 document.body, 'last');        }        // Or just re-set the props on it        else {            for (var p in o) { self.dialog[p] = o[p]; }        }        self.dialog.show();    };
meta: 1859	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1859/5cbd7f779c65adab1641e6f569eda2a9a48e7f70/create.js/buggy/src/webapp/js/cosmo/account/create.js