How to extend this jQuery function
<p>I want to extend this function and make my own, this new function should have same functions as the old one but additionalOkClicked should be overwritten with my own function.</p>

<p>How do I do this?</p>

<pre><code>   (function ($) {
    $.LocationDialog = {
        mainInit: function()
        {
            //some code here
        },

        init: function(callingNum)
        {
            //some code here
        },

        additionalOkClicked: function()
        {
            //i want to override this function
        }
    };
})(jQuery);
</code></pre>
