Adding properties to a existing object
<p>thsi is not a jquery ui question but a JavaScript object question     </p>

<pre><code>function uiDialog()
{    
   ...............
   ...............

    $('#dialog ').dialog({
        width:'auto',
        height :'auto',
        resizable: false 
    });
    ..............
    ..............
}
</code></pre>

<p>Above is a jquery ui dialog code. Now everywhere i want a dialog am calling uiDialog(). Now ui has so many options that are rarely required. So i am considering passing a object as a parameter and appending it to this default data   but how can i do it .can i do </p>

<pre><code>$('#dialog ').dialog({
    width:'auto',
    height :'auto',
    resizable: false,
    myObject 
});
</code></pre>

<p>Will this work or can you suggest any other way if this fails </p>
