New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with popup on 1.4.0a #6318

Closed
doomsy opened this Issue Aug 9, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@doomsy

doomsy commented Aug 9, 2013

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

This comment has been minimized.

Show comment
Hide comment
@arschmitz

arschmitz Aug 9, 2013

Member

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

Member

arschmitz commented Aug 9, 2013

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

@doomsy

This comment has been minimized.

Show comment
Hide comment
@doomsy

doomsy Aug 9, 2013

Thanks for the fast response.

doomsy commented Aug 9, 2013

Thanks for the fast response.

@arschmitz arschmitz closed this in 0e96ca0 Aug 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment