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

Cannot read property 'prefetch' of undefined #5888

Closed
stanleystanev opened this issue Apr 16, 2013 · 1 comment
Closed

Cannot read property 'prefetch' of undefined #5888

stanleystanev opened this issue Apr 16, 2013 · 1 comment

Comments

@stanleystanev
Copy link

We are using JQM 1.3.1.

Trying to do some AJAX in a JQM dialog and for some of our activities, we are getting the following JavaScript error:

Uncaught TypeError: Cannot read property 'prefetch' of undefined

Unfortunately, I don't have time to extract portion of the code and provide a case to reproduce outside of our application.

The error happens on this line of JQM 1.3.1:

if( base && !options.prefetch ){...

The way we temporary fixed it was to change it to:

if( base && (!options || !options.prefetch) ){...

Here is a snapshot of the problem:

http://www.stanev.com/temp/jqm.prefetch.error.jpg

@jaspermdegroot
Copy link
Contributor

Closing as duplicate of #5877

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