The close event does occur after the dialog has closed. The flag for whether or not the dialog is open gets toggled just after the event. I suppose we could toggle the flag immediately before the event, but in terms of doing something after a dialog closes, you definitely don't need to check this flag inside of the close event.
On Apr 1, 8:23 pm, Paul <[email protected]> wrote: > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
