Changing widget defaults globally.

Changing widget defaults globally.


Hi all,
I want to change default options for the Dialog and I haven't found
any documented solution. I finally ended up with this:
$.extend($.ui.dialog.defaults, {
    autoOpen: false,
    width: 'auto',
});
Is there more correct way? And is this [changing widgets' default
options] going to be a public option in the future?
Thanks.