What is the difference between .dialog("close")
and .dialog("destroy")
in jquery-ui?
I have a script where the previous developer had used .dialog("destroy")
but now I've to perform some actions once the dialog is closed. I've found beforeclose
that is called with .dialog("close")
and not with .dialog("destroy")
. So I've to change the method from destroy
to close
to make it work.
So is there anything that I'll miss if I use .dialog("close")
and not .dialog("destroy")
?
PS: The dialog is using custom buttons to close itself, and the .dialog("close")
is called on the click event of the button