Popup not appearing the 2nd time (1.2 beta)

Popup not appearing the 2nd time (1.2 beta)

Hi,
I have a problem with the popup in version 1.2.0 beta:

The popup itself is inside my index.html:

  1. ....
  2. <div data-role="page" id="landing">
  3. <div id="popupBasic" class="ui-content" ><a href="#" style="float:right;" onclick="$('#popupBasic').popup('close');">close</a><div id="popupText"></div></div>
  4. ...
  5. </div>
I have different pages which are loaded afterwards and some of them have links which should open the popup:

  1. $(".popupOpener").attr("data-position-to","window").attr("data-rel","popup");
  2. $(".popupOpener").attr("href","#popupBasic");
  3. $(".popupOpener").click(function(e){       
  4.             $("#popupBasic #popupText").html('test');
  5.             $("#popupBasic").popup('open');
  6. });
First click is fine. Popup opens and can be closed.
There is an error when I open the popup:


TypeError: self.options.container is undefined
http://webbox/SwissgridBox/js/jquery.mobile-1.2.0-beta.1.jas
Row: 7024




And when I close the popup:


TypeError: opts.container is undefined
http://webbox/SwissgridBox/js/jquery.mobile-1.2.0-beta.1.jas
Row: 6958




Afterwards I can't open it again!

Any hints?