Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Issue with popup on 1.4.0a #6318

Closed
guiix-code opened this issue Aug 9, 2013 · 2 comments
Closed

Issue with popup on 1.4.0a #6318

guiix-code opened this issue Aug 9, 2013 · 2 comments

Comments

@guiix-code
Copy link

Issue description

On 1.3.1, creating a popup dynamically works as expected.
On 1.4.0a, this functionality returns an error "Cannot read property '0' of undefined"

Test page (see below)

http://jsbin.com/ofuhaw/151/edit

Steps to reproduce

Click the button "Open popup", which adds a div and attempts to instantiate the popup object with .popup().

Expected outcome

Div should have popup code added.

Actual outcome

Exception occurs: Cannot read property '0' of undefined

Platforms/browsers (including version) and devices tested
Chrome 28, OSX 10.8.4

jQuery Mobile and jQuery core version used
1.4.0a and jquery-1.10.1

@arschmitz
Copy link
Contributor

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

@guiix-code
Copy link
Author

Thanks for the fast response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants