dialog close()

dialog close()


I would like to perform a function at the same time I close a UI
dialog. Accordingly as an experiment I am passing the following:
close: function (){console.log($(this).dialog('isOpen'))}
I had assumed that the passed function would happen after the dialog
closed, but alas I see that .dialog('isOpen') always returns true. If
the provided "close" function is not the means to perform a task after
a dialog closes, what is the best way to approach the task?
Thanks in advance for your time.
Paul