Appending UI Dialog options

Appending UI Dialog options


Is it possible to append Dialog callbacks rather than overwrite them?
Specifically, in some circumstances, I want to append an additional
function to the already existing Dialog open and resizeStop
callbacks. Respecifying the callback in the following manner, though,
replaces the callback rather than appending to it:
$("#dialog").dialog("option", "resizeStop", function(){ eg() };
How can I append to the callback rather than replace it? Is it
possible to store the original callbak in a var and then append my own
function to the var? I've been stumped on this one for a few days.
Thanks..