Each time i close my dialog i use the destroy method:
- $(this).dialog("destroy")
The problem is that every time i close the dialog and try to initiate it again i get this error, but on the second click it gets open
- b("<div></div>").addClass("ui-widget-overlay") is undefined