Popup dialog problem in JQM 1.3 and iOS

Popup dialog problem in JQM 1.3 and iOS

Hi,

I try to close a popup dialog using the following code:
  1. $("#popupLogin").popup("close");
but the dialog is not closed.
If I change my code to call the close function twice, it is closed successfylly.