Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with popup on 1.4.0a #6318
On 1.3.1, creating a popup dynamically works as expected.
Test page (see below)
Steps to reproduce
Click the button "Open popup", which adds a div and attempts to instantiate the popup object with .popup().
Div should have popup code added.
Exception occurs: Cannot read property '0' of undefined
Platforms/browsers (including version) and devices tested
jQuery Mobile and jQuery core version used
there are 2 issues at play here first you are trying to create a popup in the body not in a page which was not supported in 1.3 however it is supported in 1.4 if you try and dynamically create a popup inside the body it works fine http://jsbin.com/ofuhaw/152/edit however this is a problem outside the page as is shown in your example this is due to an improper variable assignment
Thank you for reporting