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.
How do I do this?
(function ($) {
$.LocationDialog = {
mainInit: function()
{
//some code here
},
init: function(callingNum)
{
//some code here
},
additionalOkClicked: function()
{
//i want to override this function
}
};
})(jQuery);
additionalOkClickedand write your own ?