In jQuery Mobile 1.2.0 i'm using the new popup widget.
$('#my_popup').popup('close');
$('#my_popup').popup('open');
I obviously want to wait until the the popup closes completely before i open it again. The close method does not provide a callback function option.